@@ -3,14 +3,29 @@ abstract type FromPrimitive{inplace} <: AbstractADType end
33check_available (backend:: FromPrimitive ) = check_available (backend. backend)
44inplace_support (:: FromPrimitive{true} ) = InPlaceSupported ()
55inplace_support (:: FromPrimitive{false} ) = InPlaceNotSupported ()
6- function inner_preparation_behavior (backend:: FromPrimitive )
7- return inner_preparation_behavior (backend. backend)
6+
7+ function pick_batchsize (backend:: FromPrimitive , x_or_y:: AbstractArray )
8+ return pick_batchsize (backend. backend, x_or_y)
89end
910
1011function pick_batchsize (backend:: FromPrimitive , N:: Integer )
1112 return pick_batchsize (backend. backend, N)
1213end
1314
15+ function inner_preparation_behavior (backend:: FromPrimitive )
16+ return inner_preparation_behavior (backend. backend)
17+ end
18+
19+ function overloaded_input (:: typeof (pushforward), f, backend:: FromPrimitive , x, tx:: NTuple )
20+ return overloaded_input (pushforward, f, backend. backend, x, tx)
21+ end
22+
23+ function overloaded_input (
24+ :: typeof (pushforward), f!, y, backend:: FromPrimitive , x, tx:: NTuple
25+ )
26+ return overloaded_input (pushforward, f!, y, backend. backend, x, tx)
27+ end
28+
1429"""
1530 AutoForwardFromPrimitive(backend::AbstractADType)
1631
0 commit comments