Hi Community, I am following tutorial: Deploy a Framework-prequantized Model with TVM — tvm 0.9.dev0 documentation to build a pre-quantized mobilenet v2 model. But it throws an error:
Traceback (most recent call last): File “pytorch_test_quant.py”, line 76, in test_compile(model_config) File “pytorch_test_quant.py”, line 60, in test_compile mod, params = relay.frontend.from_pytorch(script_module, input_shapes) File “/home/.local/lib/python3.8/site-packages/tvm-0.8.0-py3.8-linux-x86_64.egg/tvm/relay/frontend/pytorch.py”, line 3882, in from_pytorch input_scales_for_bias = qnn_torch.add_input_quant_params_to_op_inputs(graph) File “/home/.local/lib/python3.8/site-packages/tvm-0.8.0-py3.8-linux-x86_64.egg/tvm/relay/frontend/qnn_torch.py”, line 475, in add_input_quant_params_to_op_inputs scale, zp = _get_quant_param_for_input(node.inputsAt(i)) File “/home/.local/lib/python3.8/site-packages/tvm-0.8.0-py3.8-linux-x86_64.egg/tvm/relay/frontend/qnn_torch.py”, line 298, in _get_quant_param_for_input return dfs(input_value.node()) File “/home/.local/lib/python3.8/site-packages/tvm-0.8.0-py3.8-linux-x86_64.egg/tvm/relay/frontend/qnn_torch.py”, line 286, in dfs scale = current_node.inputsAt(indices[0]) RuntimeError: ArrayRef: invalid index Index = 6; Length = 6
Anyone comes across the same issue?