torch.is_autocast_ipu_enabled
function is_autocast_ipu_enabled(): booleanChecks if automatic mixed precision is enabled for IPU (Intel Processing Unit) operations.
Autocast automatically selects lower precision dtypes for faster computation while maintaining numeric accuracy. This is an IPU-specific variant.
IPU acceleration is not available in torch.js, which runs on WebGPU.
Returns
boolean– Always false in torch.js (IPU not supported)Examples
const enabled = torch.is_autocast_ipu_enabled();
// torch.js: always false