@@ -29,8 +29,8 @@ def __init__(self, calculator: Calculator):
2929 from onnxconverter_common import float16
3030 from onnxsim import simplify
3131 except ModuleNotFoundError as e :
32- raise Exception ( str ( e ) + '\n \n Note: Export Dependencies are not installed by default. If you need them, you have to install '
33- 'pySIPFENN in `dev` mode like: `pip install "pysipfenn[dev]"`, or like `pip install -e ".[dev]"` (see pysipfenn.org)' )
32+ print ( '\n \n Note: Export Dependencies are not installed by default. If you need them, you have to install pySIPFENN in '
33+ ' `dev` mode like: `pip install "pysipfenn[dev]"`, or like `pip install -e ".[dev]"` (see pysipfenn.org)' )
3434
3535 self .simplifiedDict = {model : False for model in calculator .loadedModels .keys ()}
3636 self .fp16Dict = {model : False for model in calculator .loadedModels .keys ()}
@@ -242,9 +242,8 @@ def __init__(self, calculator: Calculator):
242242 try :
243243 import coremltools as ct
244244 except ModuleNotFoundError as e :
245- raise Exception (str (e ) + '\n \n Note: Export Dependencies are not installed by default. If you need them, you have to install '
246- 'pySIPFENN in `dev` mode like: `pip install "pysipfenn[dev]"`, or like `pip install -e ".[dev]"` (see pysipfenn.org)' )
247-
245+ print ('\n \n Note: Export Dependencies are not installed by default. If you need them, you have to install pySIPFENN in '
246+ '`dev` mode like: `pip install "pysipfenn[dev]"`, or like `pip install -e ".[dev]"` (see pysipfenn.org)' )
248247
249248 self .calculator = calculator
250249 assert len (self .calculator .loadedModels )> 0 , 'No models loaded in calculator. Nothing to export.'
0 commit comments