AMP: How to check if inside autocast region?

AMP: How to check if inside autoscaling region?

You can if autocasting is enabled via torch.is_autocast_enabled().

1 Like