@@ -28,7 +28,7 @@ def try_import_torch(require_version = ["1.9.0", "1.7.1"]):
2828 logging .error (f'You have not install the torch package, please install torch=={ require_version [0 ]} and try again.' )
2929 exit ()
3030
31- def try_import_tensorflow (require_version = ["1.15.0" ]):
31+ def try_import_tensorflow (require_version = ["2.6.0" , " 1.15.0" ]):
3232 if isinstance (require_version , str ):
3333 require_version = [require_version ]
3434 try :
@@ -40,7 +40,7 @@ def try_import_tensorflow(require_version = ["1.15.0"]):
4040 logging .error (f'You have not install the tensorflow package, please install tensorflow=={ require_version [0 ]} and try again.' )
4141 exit ()
4242
43- def try_import_nni (require_version = ["2.4 " , "2.5 " ]):
43+ def try_import_nni (require_version = ["2.5 " , "2.4 " ]):
4444 if isinstance (require_version , str ):
4545 require_version = [require_version ]
4646 try :
@@ -49,7 +49,7 @@ def try_import_nni(require_version = ["2.4", "2.5"]):
4949 logging .warning (f'nni=={ nni .__version__ } is not well tested now, well tested version: nni=={ ", " .join (require_version )} ' )
5050 return nni
5151 except ImportError :
52- logging .error (f'You have not install the tensorflow package, please install tensorflow =={ require_version [0 ]} and try again.' )
52+ logging .error (f'You have not install the nni package, please install nni =={ require_version [0 ]} and try again.' )
5353 exit ()
5454
5555def try_import_torchvision_models ():
0 commit comments