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

Method PyCompiledFun

python/src/transforms.cpp:426–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424 };
425
426 PyCompiledFun(
427 const nb::callable& fun,
428 nb::object inputs,
429 nb::object outputs,
430 bool shapeless)
431 : fun(fun),
432 fun_id(reinterpret_cast<std::uintptr_t>(fun.ptr())),
433 captured_inputs(inputs),
434 captured_outputs(outputs),
435 shapeless(shapeless) {}
436
437 PyCompiledFun(const PyCompiledFun&) = delete;
438 PyCompiledFun& operator=(const PyCompiledFun&) = delete;

Callers

nothing calls this directly

Calls 1

ptrMethod · 0.80

Tested by

no test coverage detected