blackkker opened a new pull request, #12313:
URL: https://github.com/apache/tvm/pull/12313

   When importing model 
[yolov4](https://github.com/PINTO0309/PINTO_model_zoo/tree/main/031_yolov4/01_float32)
 and 
[seresenet_xx](https://drive.google.com/drive/folders/1k5MtfqbNRA8ziE3f18vu00Q1FQCzk4__).
   
   I got dynamic shape error `Check failed: (pval != nullptr) is false: Cannot 
allocate memory symbolic tensor shape [?, ?]`.
   
   I firgue out that It happened  when the expression type of shape is 
[relay.Expr,](https://github.com/blackkker/Pic-host/blob/main/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20220805112837.png)
 `_dyn_make.reshape` is called. Under normal circumstances, `_dyn_make.reshape` 
 will not be a problem, but it not work corrcetly in these case.
   So i infer the value of shape expr to avoid dynamic. The code is refered to 
#9459 #6504 #7712
   
   
   Thanks for contributing to TVM!   Please refer to guideline 
https://tvm.apache.org/docs/contribute/ for useful information and tips. After 
the pull request is submitted, please request code reviews from 
[Reviewers](https://github.com/apache/incubator-tvm/blob/master/CONTRIBUTORS.md#reviewers)
 by @ them in the pull request thread.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to