Skip to content

Commit e903656

Browse files
authored
Merge pull request #40 from onnx/gs/onnx-1.2
add onnx-1.2 dependency
2 parents 3c19127 + 2837878 commit e903656

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ def run(self):
7474
version=VersionInfo.version,
7575
description='Tensorflow to ONNX converter',
7676
setup_requires=['pytest-runner'],
77-
tests_require=['numpy', 'pytest', 'pytest-cov', 'psutil'],
77+
tests_require=['numpy', 'pytest', 'pytest-cov', 'psutil', 'graphviz'],
7878
cmdclass=cmdclass,
7979
packages=find_packages(),
8080
8181
author_email='[email protected]',
8282
url='https://github.com/onnx/tensorflow-onnx',
83-
install_requires=['graphviz', 'pyyaml']
83+
install_requires=['pyyaml', 'onnx>=1.2']
8484
)

tf2onnx/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def main():
6363
custom_ops = {op: default_custom_op_handler for op in args.custom_ops.split(",")}
6464
extra_opset = [helper.make_opsetid("tf", 1)]
6565
else:
66-
args.custom_ops = {}
66+
custom_ops = {}
6767
extra_opset = None
6868

6969
graph_def = tf.GraphDef()

0 commit comments

Comments
 (0)