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 2022/08/05 04:31:34 UTC
[GitHub] [tvm] blackkker opened a new pull request, #12313: [TFLite] Try Infer the value of shape expr to avoid dynamic
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] AndrewZhaoLuo commented on pull request #12313: [Frontend][TFLite] Try Infer the value of shape expr to avoid dynamic
Posted by GitBox <gi...@apache.org>.
AndrewZhaoLuo commented on PR #12313:
URL: https://github.com/apache/tvm/pull/12313#issuecomment-1209948811
Will take a look tomorrow or today
--
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
[GitHub] [tvm] blackkker commented on pull request #12313: [TFLite] Try Infer the value of shape expr to avoid dynamic
Posted by GitBox <gi...@apache.org>.
blackkker commented on PR #12313:
URL: https://github.com/apache/tvm/pull/12313#issuecomment-1206034345
cc @AndrewZhaoLuo
--
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
[GitHub] [tvm] blackkker commented on pull request #12313: [Frontend][TFLite] Try Infer the value of shape expr to avoid dynamic
Posted by GitBox <gi...@apache.org>.
blackkker commented on PR #12313:
URL: https://github.com/apache/tvm/pull/12313#issuecomment-1207735697
cc @AndrewZhaoLuo
--
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
[GitHub] [tvm] blackkker commented on pull request #12313: [TFLite] Try Infer the value of shape expr to avoid dynamic
Posted by GitBox <gi...@apache.org>.
blackkker commented on PR #12313:
URL: https://github.com/apache/tvm/pull/12313#issuecomment-1206033345
The module print as below
```
{
%1122 = concatenate(%1120) /* ty=Tensor[(2), int32] */;
%1123 = dyn.reshape(%1121, %1122, newshape=[]) /* ty=Tensor[(?, ?), float32] */;
%1124 = reshape(%1123, newshape=[-1, 2048]) /* ty=Tensor[(?, 2048), float32] */;
%1125 = nn.dense(%1124, %v_param_342, units=1000) /* ty=Tensor[(?, 1000), float32] */;
%1126 = expand_dims(%v_param_343, axis=0) /* ty=Tensor[(1, 1000), float32] */;
%1127 = add(%1125, %1126) /* ty=Tensor[(?, 1000), float32] */;
nn.softmax(%1127) /* ty=Tensor[(?, 1000), float32] */
}
```
--
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
[GitHub] [tvm] AndrewZhaoLuo merged pull request #12313: [Frontend][TFLite] Try Infer the value of shape expr to avoid dynamic
Posted by GitBox <gi...@apache.org>.
AndrewZhaoLuo merged PR #12313:
URL: https://github.com/apache/tvm/pull/12313
--
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