torch.autocast_decrement_nesting
function autocast_decrement_nesting(): numberDecrements the autocast nesting level.
Called when exiting an autocast context to reduce the nesting level. Pairs with autocast_increment_nesting.
This is an internal API. Use
torch.autocast() context manager instead. Nesting is not tracked in torch.js.Returns
number– The new nesting level (always 0 in torch.js)Examples
// Internal use - called by autocast context managers
const level = torch.autocast_decrement_nesting();
// Returns: 0See Also
- PyTorch torch.autocast_decrement_nesting()
- autocast_increment_nesting - Increment nesting level