MCPcopy Index your code
hub / github.com/ml-explore/mlx / make_vmap_function

Method make_vmap_function

python/src/transforms.cpp:974–981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_;

Callers

nothing calls this directly

Calls 1

InnerVmapFunctionClass · 0.85

Tested by

no test coverage detected