latest (dev)
Copy
Latest development documentation · Updated 2026-10-08
tensorplay.compiler.mark_static
- tensorplay.compiler.mark_static(tensor: Any, dim: int | None = None) Any[source]
Mark a tensor (or one dimension of it) as fixed for shape policies.
A marked dimension is meant to be treated as a compile-time constant rather than a symbolic size. Eager execution has no dynamic shape environment, so the marker records nothing here and the input is returned unchanged; it matters only to a capture that resolves symbolic sizes.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

