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
def onnx_opset_version(): return C.schema_version_map()[ONNX_DOMAIN][1]
def onnx_opset_version(): return C.schema_version_map()[""][1]
def onnx_opset_version(): # type: () -> int return C.schema_version_map()[ONNX_DOMAIN][1]
def onnx_opset_version(): # type: () -> int return C.schema_version_map()[ONNX_DOMAIN][1]