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

Method InnerFunction

python/src/transforms.cpp:694–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

692 std::shared_ptr<nb::object> output_structure_;
693
694 InnerFunction(
695 nb::callable fun,
696 nb::object input_structure,
697 std::shared_ptr<nb::object> output_structure)
698 : fun_(std::move(fun)),
699 input_structure_(std::move(input_structure)),
700 output_structure_(std::move(output_structure)) {}
701 ~InnerFunction() {
702 nb::gil_scoped_acquire gil;
703

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected