TensorPlay
latest (dev)
Copy
View Markdown

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.

On this page

Ask DeepWiki