Add VERSION check around broadcast piracy

This commit is contained in:
Keno Fischer 2018-10-28 16:07:26 -04:00 committed by Mike J Innes
parent 63a3acbf5e
commit ae58ad4716

View File

@ -424,6 +424,7 @@ end
using Requires
# https://github.com/FluxML/Flux.jl/issues/353
if VERSION < v"1.1.0-DEV.548"
@init Requires.isprecompiling() || @eval Base.Broadcast begin
function flatten(bc::Broadcasted{Style}) where {Style}
isflat(bc) && return bc
@ -449,3 +450,4 @@ using Requires
end
end
end
end