You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/09/07 08:21:11 UTC

[GitHub] [tvm] myproject24 commented on issue #7262: [Bug] Error when compiling a ONNX model with Gemm operator

myproject24 commented on issue #7262:
URL: https://github.com/apache/tvm/issues/7262#issuecomment-914095600


   Hi, @AndrewZhaoLuo @srkreddy1238 @tqchen  I am also facing the same error any suggestions?
   
   **shape_dict = {'image': (1, 368, 368, 3)}
   mod, params = relay.frontend.from_onnx(onnx_model, shape_dict)
   Traceback (most recent call last):
   
     File "C:\Users\700002~1\AppData\Local\Temp\1/ipykernel_13276/2644513500.py", line 1, in <module>
       mod, params = relay.frontend.from_onnx(onnx_model, shape_dict)
   
     File "C:\Users\7000020787\.conda\envs\tvm-build\lib\site-packages\tvm\relay\frontend\onnx.py", line 4049, in from_onnx
       mod, params = g.from_onnx(graph, opset)
   
     File "C:\Users\7000020787\.conda\envs\tvm-build\lib\site-packages\tvm\relay\frontend\onnx.py", line 3813, in from_onnx
       op = self._convert_operator(op_name, inputs, attr, opset)
   
     File "C:\Users\7000020787\.conda\envs\tvm-build\lib\site-packages\tvm\relay\frontend\onnx.py", line 3942, in _convert_operator
       sym = convert_map[op_name](inputs, attrs, self._params)
   
     File "C:\Users\7000020787\.conda\envs\tvm-build\lib\site-packages\tvm\relay\frontend\onnx.py", line 433, in _impl_v1
       input_shape = infer_shape(data)
   
     File "C:\Users\7000020787\.conda\envs\tvm-build\lib\site-packages\tvm\relay\frontend\common.py", line 512, in infer_shape
       out_type = infer_type(inputs, mod=mod)
   
     File "C:\Users\7000020787\.conda\envs\tvm-build\lib\site-packages\tvm\relay\frontend\common.py", line 487, in infer_type
       new_mod = _transform.InferType()(new_mod)
   
     File "C:\Users\7000020787\.conda\envs\tvm-build\lib\site-packages\tvm\ir\transform.py", line 161, in __call__
       return _ffi_transform_api.RunPass(self, mod)
   
     File "tvm\_ffi\_cython\./packed_func.pxi", line 323, in tvm._ffi._cy3.core.PackedFuncBase.__call__
   
     File "tvm\_ffi\_cython\./packed_func.pxi", line 257, in tvm._ffi._cy3.core.FuncCall
   
     File "tvm\_ffi\_cython\./packed_func.pxi", line 246, in tvm._ffi._cy3.core.FuncCall3
   
     File "tvm\_ffi\_cython\./base.pxi", line 163, in tvm._ffi._cy3.core.CALL
   
   DiagnosticError: Traceback (most recent call last):
     File "C:\Users\7000020787\.conda\envs\tvm-build\conda-bld\tvm-package_1630408977894\work\src\ir\diagnostic.cc", line 105
   DiagnosticError: one or more error diagnostics were emitted, please check diagnostic render for output.**


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org