Skip to content

Commit b145034

Browse files
authored
Merge pull request #26 from oxinabox/ox/copybroadcast
use copy rather than materialize for broadcasting
2 parents 0c6af95 + 5d5033c commit b145034

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ broadcast_rebuild(bc::Broadcasted) =
500500

501501
preprocess(x) = x
502502

503-
function Base.Broadcast.materialize(bc::Broadcasted{TrackedStyle})
503+
function Base.copy(bc::Broadcasted{TrackedStyle})
504504
bc1 = Broadcast.flatten(bc)
505505
bc2 = Broadcast.flatten(broadcast_rebuild(bc))
506506
∇broadcast(bc2.f, bc1.args...)

0 commit comments

Comments
 (0)