"This version of onnx-caffe2 targets ONNX operator set version {}, but the model we are trying to import uses version {}. We will try to import it anyway, but if the model uses operators which had BC-breaking changes in the intervening versions, import will fail."
.format(cls._known_opset_version,imp.version))
else:
warnings.warn("Unrecognized operator set {}".format(imp.domain))
ifopset_versionisNone:
ifmodel.ir_version>=0x00000003:
raiseRuntimeError(
"Model with IR version >= 3 did not specify ONNX operator set version (onnx-caffe2 requires it)"