Skip to content

Commit

Permalink
make opset_version optional
Browse files Browse the repository at this point in the history
  • Loading branch information
inisis committed Jul 28, 2022
1 parent ffa06f0 commit fba0fd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/fx/pytorch2caffe.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from converter.pytorch.fx.pytorch_caffe_parser import PytorchCaffeParser # noqa

class Runner(object):
def __init__(self, name, model, shape, opset_version, fuse=False, concrete_args=None):
def __init__(self, name, model, shape, opset_version=13, fuse=False, concrete_args=None):
self.name = name
self.model = model
self.shape = shape
Expand Down
2 changes: 1 addition & 1 deletion bin/fx/pytorch2onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from converter.pytorch.fx.pytorch_onnx_parser import PytorchOnnxParser # noqa

class Runner(object):
def __init__(self, name, model, shape, opset_version, fuse=False):
def __init__(self, name, model, shape, opset_version=13, fuse=False):
self.name = name
self.model = model
self.shape = shape
Expand Down

0 comments on commit fba0fd4

Please sign in to comment.