torch.is_autocast_xla_enabled
function is_autocast_xla_enabled(): booleanChecks if automatic mixed precision is enabled for XLA (Tensor Compiler) operations.
XLA is PyTorch's compiler backend for specialized hardware. Autocast on XLA automatically selects appropriate precision for compiled operations.
XLA compilation is not available in torch.js.
Returns
boolean– Always false in torch.js (XLA not supported)Examples
const enabled = torch.is_autocast_xla_enabled();
// torch.js: always false