MCPcopy Create free account
hub / github.com/ml-explore/mlx / InnerFunction

Method InnerFunction

python/src/transforms.cpp:604–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602 std::weak_ptr<nb::object> output_structure_;
603
604 InnerFunction(
605 nb::object fun,
606 nb::object args_structure,
607 std::weak_ptr<nb::object> output_structure)
608 : fun_(std::move(fun)),
609 args_structure_(std::move(args_structure)),
610 output_structure_(output_structure) {}
611 ~InnerFunction() {
612 nb::gil_scoped_acquire gil;
613

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected