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