torch.is_autocast_cache_enabled
function is_autocast_cache_enabled(): booleanChecks if the autocast cache is enabled.
The autocast cache stores metadata about autocast operations to improve performance. This is specific to PyTorch's autocast implementation and not relevant for torch.js.
Caching is not implemented in torch.js autocast stub.
Returns
boolean– Always false in torch.jsExamples
const cached = torch.is_autocast_cache_enabled();
// torch.js: always false