コード例 #1
0
 def target_opset_any_domain(self, domain):
     if isinstance(self.target_opset, dict):
         if domain in self.target_opset:
             to = self.target_opset[domain]
         else:
             to = None
         if to is None and domain == '':
             to = onnx_opset_version()
         if to is None:
             smap = C.schema_version_map()
             if domain in smap:
                 to = smap[domain][1]
         if to is not None:
             return to
         # The domain is not registered in onnx, it is probably
         # a custom domain. We assume the version is one.
         return 1
     return self.target_opset
コード例 #2
0
def onnx_opset_version():
    return C.schema_version_map()[ONNX_DOMAIN][1]
コード例 #3
0
def onnx_opset_version():
    return C.schema_version_map()[""][1]
コード例 #4
0
ファイル: __init__.py プロジェクト: texchi2/onnx
def onnx_opset_version():  # type: () -> int
    return C.schema_version_map()[ONNX_DOMAIN][1]
コード例 #5
0
ファイル: __init__.py プロジェクト: harshit98/onnx
def onnx_opset_version():  # type: () -> int
    return C.schema_version_map()[ONNX_DOMAIN][1]