File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
- # ZygoteRules.@adjoint function Base.map(t::Transform, X::ColVecs)
2
- # return ZygoteRules.pullback(_map, t, X)
3
- # end
4
- #
5
- # ZygoteRules.@adjoint function Base.map(t::Transform, X::RowVecs)
6
- # return ZygoteRules.pullback(_map, t, X)
7
- # end
8
- #
9
- # function ZygoteRules._pullback(
10
- # cx::AContext, ::typeof(literal_getproperty), x::ColVecs, ::Val{f}
11
- # ) where {f}
12
- # return ZygoteRules._pullback(cx, literal_getfield, x, Val{f}())
13
- # end
1
+ ZygoteRules. @adjoint function Base. map (t:: Transform , X:: ColVecs )
2
+ return ZygoteRules. pullback (_map, t, X)
3
+ end
4
+
5
+ ZygoteRules. @adjoint function Base. map (t:: Transform , X:: RowVecs )
6
+ return ZygoteRules. pullback (_map, t, X)
7
+ end
8
+
9
+ function ZygoteRules. _pullback (
10
+ cx:: AContext , :: typeof (literal_getproperty), x:: ColVecs , :: Val{f}
11
+ ) where {f}
12
+ return ZygoteRules. _pullback (cx, literal_getfield, x, Val {f} ())
13
+ end
You can’t perform that action at this time.
0 commit comments