API symbolsstax
Copy
tensorplay.stax.stax
- tensorplay.stax.stax(graph_module: GraphModule, example_inputs: list[Any], *, mode: str | None = None, options: dict[str, Any] | None = None, name: str | None = None, dynamic: bool | None = None, strict_native: bool = False, **kwargs: Any)[source]
Compile one canonical graph and return an executable callable.
example_inputsand backend options are part of the same contract as TorchInductor’scompile_fxentry point. Stax currently specializes metadata in the frontend and uses the native graph when its lowering contract is satisfied.strict_nativemakes a failed lowering a hard compiler error, so a benchmark can never report the Python GraphModule executor as compiled performance.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?
