G4V:



Hello, I’m having problems exporting a very simple quantized model to ONNX. The error message I’m seeing is - AttributeError: ‘torch.dtype’ object has no attribute ‘detach’ The cause of this is that (‘fc1._packed_params.dtype’, torch.qint8) is ends up in the state_dict. I asked on a previous (and old) thread if there was a solution and the answer was that this could be solved in the latest version of PyTorch. So I installed 1.7.0.dev20200705+cpu, but no joy. I’ve pasted the example below. A…




cc @supriyar is quantized Linear supported in ONNX?