You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# NOTE: without contextual dispatch, we can only redefine methods where a GPU-specific
4
+
# type occurs in the signature (or we'll get a "fatal precompilation failure" error)
5
+
6
+
ifVERSION>=v"1.3.0-alpha.107"
7
+
_bcs1(a::Integer, b::Integer) = a ==1? b : (b ==1? a : (a == b ? a :throw(DimensionMismatch("arrays could not be broadcast to a common size"))))
8
+
_bcs1(a::Integer, b) = a ==1? b : (first(b) ==1&&last(b) == a ? b :throw(DimensionMismatch("arrays could not be broadcast to a common size")))
9
+
_bcs1(a, b::Integer) =_bcs1(b, a)
10
+
_bcs1(a, b) = Broadcast._bcsm(b, a) ? Broadcast.axistype(b, a) : (Broadcast._bcsm(a, b) ? Broadcast.axistype(a, b) :throw(DimensionMismatch("arrays could not be broadcast to a common size")))
0 commit comments