megengine.amp¶
>>> from megengine import amp
|
A helper class that performs grad scaling to prevent from data overflow in |
|
A class to control autocast mode for amp as a context manager or a decorator. |
Get or set amp autocast mode enabled or not. |
|
Get or set amp autocast mode's higher precision dtype. |
|
Get or set amp autocast mode's lower precision dtype. |