torch.sym_int

torch.sym_int(a) [source]

SymInt-aware utility for int casting.

Parameters

a (SymInt, SymFloat, or object) – Object to cast

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.sym_int.html