File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
intel_pytorch_extension_py Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -86,15 +86,15 @@ def enable_auto_optimization(mixed_dtype = None, train = False):
8686
8787def enable_auto_mix_precision (mixed_dtype = torch .bfloat16 , train = False ):
8888 running_mode = 'training' if train else 'inference'
89- auto_mix_precision (AmpConf (mixed_dtype ), running_mode ).__enter__ ()
89+ AutoMixPrecision (AmpConf (mixed_dtype ), running_mode ).__enter__ ()
9090
9191def get_auto_optimization ():
9292 return get_auto_mix_precision
9393
9494def get_train ():
9595 return core .get_train ()
9696
97- class auto_mix_precision (_DecoratorContextManager ):
97+ class AutoMixPrecision (_DecoratorContextManager ):
9898 def __init__ (self , conf , running_mode = 'inference' ):
9999 self .pre_mixed_dtype = get_auto_mix_precision ()
100100 self .pre_running_mode = get_train ()
You can’t perform that action at this time.
0 commit comments