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

Method ~PyCustomFunction

python/src/transforms.cpp:684–687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

682 public:
683 PyCustomFunction(nb::callable fun) : fun_(std::move(fun)) {}
684 ~PyCustomFunction() {
685 nb::gil_scoped_acquire gil;
686 reset();
687 }
688
689 struct InnerFunction {
690 nb::callable fun_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected