I got the same error in 4.0, 4.1 and the master builds, while trying to import resnet50.onnx, which is the result of onnx export of the existing pretrained resnet50 PyTorch model. You can generate the model using this code.