Skip to content

Commit 316204e

Browse files
committed
change logging level
1 parent 7a5d1fa commit 316204e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/losses/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ end
2727
function _check_sizes(ŷ::AbstractArray, y::AbstractArray)
2828
for d in 1:max(ndims(ŷ), ndims(y))
2929
if size(ŷ,d) != size(y,d)
30-
@error "size mismatch in loss function! In future this will be an error; in Flux 0.12 broadcasting acceps some mismatches" summary(ŷ) summary(y) maxlog=3 _id=hash(size(y))
30+
@warn "size mismatch in loss function! In future this will be an error. In Flux <= 0.12 broadcasting acceps this, but may not give sensible results" summary(ŷ) summary(y) maxlog=3 _id=hash(size(y))
3131
end
3232
end
3333
end

0 commit comments

Comments
 (0)