megengine.amp.enabled

enabled = <property object>

Get or set amp autocast mode enabled or not.

Examples

import megengine as mge
mge.amp.enabled = True