latest (dev)
Copy
Latest development documentation · Updated 2026-10-08
tensorplay.compiler.disallow_in_graph
- tensorplay.compiler.disallow_in_graph(fn: Callable[[...], Any]) Callable[[...], Any][source]
Declare that a callable must not be absorbed into a captured graph.
The tracer is meant to treat calls to
fnas region boundaries: the surrounding pieces are captured as separate graphs andfnitself runs eagerly between them. Under eager execution the marker is inert metadata, so the callable is returned unchanged.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

