Fix layout inference bug for resize layer(#205)
Co-authored-by: zhouheng.zheng <zhouheng.zheng@ouotlook.com>
This commit is contained in:
parent
c9086e0afe
commit
68b5acbe7c
|
|
@ -51,7 +51,7 @@ class ResizeLayoutInfer : public OpLayoutInfer {
|
|||
auto final_pv = input_pv->Reverse()->Add(required_pv);
|
||||
|
||||
if (!final_pv->IsAligned()) {
|
||||
auto perm_out = InsertPermute(i_src, final_pv);
|
||||
auto perm_out = InsertPermute(context_->GetMapedTensor(i_src), final_pv);
|
||||
context_->UpdateTensorMap(i_src, perm_out);
|
||||
context_->SetPermuteVector(i_src, final_pv);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue