pytorch / 2 / generated / torch.sym_float.html

torch.sym_float

torch.sym_float(a) [source]

SymInt-aware utility for float 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_float.html