mirror of https://github.com/alibaba/MNN.git
Merge pull request #2262 from zeekimn/dev_fix_hiai
build(hiai): fix for update hiai to 100.520.020.010
This commit is contained in:
commit
1b35d5df84
|
|
@ -39,7 +39,7 @@ ErrorCode NPUDepthToSpace::onResize(const std::vector<Tensor *> &inputs, const s
|
|||
(*permuteBefore)
|
||||
.set_input_x(*xOp1.get())
|
||||
.set_attr_order({0,2,3,1})
|
||||
.SetAttr("NCHW_to_NHWC", ge::AttrValue::CreateFrom<ge::AttrValue::INT>(1));
|
||||
.SetAttr("NCHW_to_NHWC", ge::AttrValue::CreateFrom(static_cast<int64_t>(1)));
|
||||
|
||||
(*depthToSpace)
|
||||
.set_input_x(*permuteBefore.get())
|
||||
|
|
@ -49,7 +49,7 @@ ErrorCode NPUDepthToSpace::onResize(const std::vector<Tensor *> &inputs, const s
|
|||
(*permuteAfter)
|
||||
.set_input_x(*depthToSpace.get())
|
||||
.set_attr_order({0,3,1,2})
|
||||
.SetAttr("NHWC_to_NCHW", ge::AttrValue::CreateFrom<ge::AttrValue::INT>(1));
|
||||
.SetAttr("NHWC_to_NCHW", ge::AttrValue::CreateFrom(static_cast<int64_t>(1)));
|
||||
|
||||
mNpuBackend->setOutputOps(mOp, {permuteBefore, depthToSpace, permuteAfter}, outputs);
|
||||
return NO_ERROR;
|
||||
|
|
|
|||
Loading…
Reference in New Issue