@@ -134,37 +134,37 @@ end
134134(:: ∂☆{N})(args:: AbstractTangentBundle{N} ...) where {N} = ∂☆internal {N} ()(args... )
135135
136136# Special case rules for performance
137- @Base . aggressive_constprop function (:: ∂☆{N})(f:: ATB{N, typeof(getfield)} , x:: TangentBundle{N} , s:: AbstractTangentBundle{N} ) where {N}
137+ @Base . constprop :aggressive function (:: ∂☆{N})(f:: ATB{N, typeof(getfield)} , x:: TangentBundle{N} , s:: AbstractTangentBundle{N} ) where {N}
138138 s = primal (s)
139139 TangentBundle {N} (getfield (primal (x), s),
140140 map (x-> lifted_getfield (x, s), x. partials))
141141end
142142
143- @Base . aggressive_constprop function (:: ∂☆{N})(f:: ATB{N, typeof(getfield)} , x:: TaylorBundle{N} , s:: AbstractTangentBundle{N} ) where {N}
143+ @Base . constprop :aggressive function (:: ∂☆{N})(f:: ATB{N, typeof(getfield)} , x:: TaylorBundle{N} , s:: AbstractTangentBundle{N} ) where {N}
144144 s = primal (s)
145145 TaylorBundle {N} (getfield (primal (x), s),
146146 map (y-> lifted_getfield (y, s), x. coeffs))
147147end
148148
149- @Base . aggressive_constprop function (:: ∂☆{N})(:: ATB{N, typeof(getfield)} , x:: CompositeBundle{N} , s:: AbstractTangentBundle{N, Int} ) where {N}
149+ @Base . constprop :aggressive function (:: ∂☆{N})(:: ATB{N, typeof(getfield)} , x:: CompositeBundle{N} , s:: AbstractTangentBundle{N, Int} ) where {N}
150150 x. tup[primal (s)]
151151end
152152
153- @Base . aggressive_constprop function (:: ∂☆{N})(:: ATB{N, typeof(getfield)} , x:: CompositeBundle{N, B} , s:: AbstractTangentBundle{N, Symbol} ) where {N, B}
153+ @Base . constprop :aggressive function (:: ∂☆{N})(:: ATB{N, typeof(getfield)} , x:: CompositeBundle{N, B} , s:: AbstractTangentBundle{N, Symbol} ) where {N, B}
154154 x. tup[Base. fieldindex (B, primal (s))]
155155end
156156
157- @Base . aggressive_constprop function (:: ∂☆{N})(f:: ATB{N, typeof(getfield)} , x:: ATB{N} , s:: ATB{N} , inbounds:: ATB{N} ) where {N}
157+ @Base . constprop :aggressive function (:: ∂☆{N})(f:: ATB{N, typeof(getfield)} , x:: ATB{N} , s:: ATB{N} , inbounds:: ATB{N} ) where {N}
158158 s = primal (s)
159159 TangentBundle {N} (getfield (primal (x), s, primal (inbounds)),
160160 map (x-> lifted_getfield (x, s), x. partials))
161161end
162162
163- @Base . aggressive_constprop function (:: ∂☆{N})(f:: ATB{N, typeof(getfield)} , x:: UniformBundle{N, <:Any, U} , s:: AbstractTangentBundle{N} ) where {N, U}
163+ @Base . constprop :aggressive function (:: ∂☆{N})(f:: ATB{N, typeof(getfield)} , x:: UniformBundle{N, <:Any, U} , s:: AbstractTangentBundle{N} ) where {N, U}
164164 UniformBundle {N,<:Any,U} (getfield (primal (x), primal (s)), x. partial)
165165end
166166
167- @Base . aggressive_constprop function (:: ∂☆{N})(f:: ATB{N, typeof(getfield)} , x:: UniformBundle{N, <:Any, U} , s:: AbstractTangentBundle{N} , inbounds:: AbstractTangentBundle{N} ) where {N, U}
167+ @Base . constprop :aggressive function (:: ∂☆{N})(f:: ATB{N, typeof(getfield)} , x:: UniformBundle{N, <:Any, U} , s:: AbstractTangentBundle{N} , inbounds:: AbstractTangentBundle{N} ) where {N, U}
168168 UniformBundle {N,<:Any,U} (getfield (primal (x), primal (s), primal (inbounds)), x. partial)
169169end
170170
0 commit comments