Skip to content

Commit ea574cf

Browse files
authored
test (#230)
1 parent c7d199e commit ea574cf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

onnxmltools/convert/common/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ def coreml_installed():
4141
return False
4242

4343

44-
def ketone_installed():
44+
def keras2onnx_installed():
4545
"""
46-
Checks that *ketone* is available.
46+
Checks that *keras2onnx* is available.
4747
"""
4848
try:
49-
import ketone
49+
import keras2onnx
5050
return True
5151
except ImportError:
5252
return False

onnxmltools/convert/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ def convert_keras(model, name=None, initial_types=None, doc_string='',
2222
target_opset=None, targeted_onnx=onnx.__version__,
2323
channel_first_inputs=None, custom_conversion_functions=None, custom_shape_calculators=None,
2424
default_batch_size=1):
25-
if not utils.ketone_installed():
26-
raise RuntimeError('ketone is not installed. Please install it to use this feature.')
25+
if not utils.keras2onnx_installed():
26+
raise RuntimeError('keras2onnx is not installed. Please install it to use this feature.')
2727

2828
if custom_conversion_functions:
2929
warnings.warn('custom_conversion_functions is not supported any more. Please set it to None.')
3030

31-
from ketone import convert_keras as convert
31+
from keras2onnx import convert_keras as convert
3232
return convert(model, name, doc_string, target_opset, channel_first_inputs)
3333

3434

0 commit comments

Comments
 (0)