You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for participating in the TVM community! We use https://discuss.tvm.ai for any general usage questions and discussions. The issue tracker is used for actionable items such as feature proposals discussion, roadmaps, and bug tracking. You are always welcomed to post on the forum first 😸
Issues that are inactive for a period of time may get closed. We adopt this policy so that we won't lose track of actionable issues that may fall at the bottom of the pile. Feel free to reopen a new one if you feel there is an additional problem that needs attention when an old one gets closed.
This simple conv2d + squeeze model should pass compilation but actually failed.
Actual behavior
5: tvm::relay::MixedModeMutator::VisitLeaf(tvm::RelayExpr const&)
at /home/ganler/Documents/tvm/src/relay/ir/expr_functor.cc:81
4: tvm::relay::TempRealizer::DispatchVisitExpr(tvm::RelayExpr const&)
at /home/ganler/Documents/tvm/src/relay/transforms/forward_rewrite.cc:46
3: tvm::relay::LayoutAlternatedExprNode<tvm::relay::alter_op_layout::AlterTransformMemorizer>::Realize() const
at /home/ganler/Documents/tvm/src/relay/transforms/transform_layout.h:183
2: tvm::relay::TransformMemorizer::Transform(tvm::RelayExpr, tvm::tir::Layout const&, tvm::tir::Layout const&)
at /home/ganler/Documents/tvm/src/relay/transforms/transform_layout.h:115
1: tvm::relay::TransformMemorizer::TransformHelper(tvm::RelayExpr, tvm::tir::Layout, tvm::tir::Layout)
at /home/ganler/Documents/tvm/src/relay/transforms/transform_layout.h:157
0: tvm::tir::BijectiveLayout::BijectiveLayout(tvm::tir::Layout, tvm::tir::Layout)
at /home/ganler/Documents/tvm/src/tir/ir/data_layout.cc:421
File "/home/ganler/Documents/tvm/src/tir/ir/data_layout.cc", line 422
TVMError:
---------------------------------------------------------------
An error occurred during the execution of TVM.
For more information, please see: https://tvm.apache.org/docs/errors.html
---------------------------------------------------------------
Check failed: (GetStoreRule(&n->index_backward_rule, &n->shape_backward_rule, n->dst_layout, n->src_layout)) is false: NHW1c NHW
It seems that we are trying to initialize a transform for NHW1c <--> NHW, which need to add/remove a primal axis, while layout_transform doesn't support this so far. In fact, I don't think we need layout transform here.
@yangulei Thanks for explaining this bug. Just curious about the workaround to fix it? Do we need to implement new logics to transform its layout or we can simply skip this optimization for such patterns during optimization dispatching.
areusch
added
the
needs-triage
PRs or issues that need to be investigated by maintainers to find the right assignees to address it
label
Oct 19, 2022
driazati
added
relay:op
src/relay/op
tir
any TIR core issues which don’t fit into other tir: labels (include/tvm/tir, src/tir)
and removed
needs-triage
PRs or issues that need to be investigated by maintainers to find the right assignees to address it
labels
Oct 19, 2022
Thanks for participating in the TVM community! We use https://discuss.tvm.ai for any general usage questions and discussions. The issue tracker is used for actionable items such as feature proposals discussion, roadmaps, and bug tracking. You are always welcomed to post on the forum first 😸
Issues that are inactive for a period of time may get closed. We adopt this policy so that we won't lose track of actionable issues that may fall at the bottom of the pile. Feel free to reopen a new one if you feel there is an additional problem that needs attention when an old one gets closed.
Expected behavior
This simple conv2d + squeeze model should pass compilation but actually failed.
Actual behavior
Environment
Linux; Clang-14; TVM tag 8f6fa8f;
Steps to reproduce
Preferably a minimal script to cause the issue to occur.
This seems to be related to #9996
cc: @masahi @yangulei
cc @Hzfengsy @junrushao
The text was updated successfully, but these errors were encountered: