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/01/04 12:13:48 UTC

[GitHub] [tvm] luyaor opened a new issue #7202: [Bug] [Relay] Error when compiling a simple ONNX model

luyaor opened a new issue #7202:
URL: https://github.com/apache/tvm/issues/7202


   ## Description
   
   When compiling following model with TVM, it will error.
   
   The model(with ONNX as frontend) with error is as follows, check bug.onnx in bug2.zip.
   
   ![image](https://user-images.githubusercontent.com/7541296/103534130-40f31e80-4ec9-11eb-867e-76986a0e0693.png)
   
   Error Log
   
   ```
   The Relay type checker is unable to show the following types match.
   In particular dimension 0 conflicts: 3 does not match 1.
   The Relay type checker is unable to show the following types match.
   In particular `Tensor[(3), float32]` does not match `Tensor[(1), float32]`
   note: run with `TVM_BACKTRACE=1` environment variable to display a backtrace.
   ```
   
   ## How to reproduce
   
   ### Environment
   
   Python3, with tvm, onnx, you could also use Conda as `conda env create -f environment.yml`
   
   tvm version: [`c31e338`](https://github.com/apache/tvm/commit/c31e338d5f98a8e8c97286c5b93b20caee8be602) Wed Dec 9 14:52:58 2020 +0900
   
   1. Download [bug2.zip](https://github.com/apache/tvm/files/5764543/bug2.zip)
   
   2. Run `python check.py`.
   


----------------------------------------------------------------
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.

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



[GitHub] [tvm] masahi closed issue #7202: [Bug] [Relay] Error when compiling a simple ONNX model

Posted by GitBox <gi...@apache.org>.
masahi closed issue #7202:
URL: https://github.com/apache/tvm/issues/7202


   


----------------------------------------------------------------
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.

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



[GitHub] [tvm] jwfromm commented on issue #7202: [Bug] [Relay] Error when compiling a simple ONNX model

Posted by GitBox <gi...@apache.org>.
jwfromm commented on issue #7202:
URL: https://github.com/apache/tvm/issues/7202#issuecomment-754372403


   Thanks for finding this bug, it's due to a bad assumption made in Prelu conversion about the input layout. The issue is fixed in https://github.com/apache/tvm/pull/7208 and I've confirmed the test script works with that change.


----------------------------------------------------------------
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.

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