Skip to content

Commit 033daf2

Browse files
authored
add comment (#454)
1 parent 8e805ef commit 033daf2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/transform/transform.jl

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Abstract type defining a transformation of the input.
55
"""
66
abstract type Transform end
77

8+
# We introduce our own _map for Transform so that we can work around
9+
# https://github.com/FluxML/Zygote.jl/issues/646 and define our own pullback
10+
# (see zygoterules.jl)
811
Base.map(t::Transform, x::AbstractVector) = _map(t, x)
912
_map(t::Transform, x::AbstractVector) = t.(x)
1013

0 commit comments

Comments
 (0)