| 972 | } |
| 973 | |
| 974 | std::optional<InnerVmapFunction> make_vmap_function( |
| 975 | nb::object input_structure) { |
| 976 | if (!vmap_fun_.has_value()) { |
| 977 | return std::nullopt; |
| 978 | } |
| 979 | |
| 980 | return InnerVmapFunction(*vmap_fun_, input_structure); |
| 981 | } |
| 982 | |
| 983 | nb::callable fun_; |
| 984 | std::optional<nb::callable> vjp_fun_; |
nothing calls this directly
no test coverage detected