zetyquickly:

RuntimeError: quantized::conv2d_relu expected scale to be 7th input


Please re-try with pytorch nightly build, we recently fixed this so you shouldn’t be seeing this error anymore.



 zetyquickly:

RuntimeError: Attribute 'kernel_shape' is expected to have field 'ints'



Seems like the conv layer is not quantized so it produces onnx::Conv as opposed to the _caffe2::Int8Conv operator. Currently the onnx export path to caffe2 does not support partially quantized model, so it expects the entire pytorch model to be able to get quantized.