# tensorplay.compiler.mark_static Source: https://www.tensorplay.cn/docs/generated/tensorplay.compiler.mark_static.html ```python tensorplay.compiler.mark_static(tensor: Any, dim: int | None = None) → Any ``` 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.