File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11
11
import collections
12
12
import inspect
13
13
14
+ from tf2onnx import constants
15
+
14
16
# pylint: disable=unused-argument,missing-docstring,invalid-name
15
17
16
18
class tf_op :
17
19
_OPSETS = collections .OrderedDict ()
18
20
_MAPPING = None
19
21
20
- def __init__ (self , name , domain = "onnx" , ** kwargs ):
22
+ def __init__ (self , name , domain = constants . ONNX_DOMAIN , ** kwargs ):
21
23
if not isinstance (name , list ):
22
24
name = [name ]
23
25
self .name = name
@@ -54,7 +56,7 @@ def get_opsets():
54
56
55
57
@staticmethod
56
58
def create_mapping (max_opset , extra_opsets ):
57
- mapping = {"onnx" : max_opset }
59
+ mapping = {constants . ONNX_DOMAIN : max_opset }
58
60
if extra_opsets :
59
61
for extra_opset in extra_opsets :
60
62
mapping [extra_opset .domain ] = extra_opset .version
You can’t perform that action at this time.
0 commit comments