dynamic_aicpu_kernel_mod should update output_size_list_ in Resize even
when type is kComputeDepend
This commit is contained in:
parent
7e7cbe55a4
commit
506a18e039
|
@ -62,10 +62,9 @@ int DynamicAicpuOpKernelMod::Resize(const BaseOperatorPtr &base_operator, const
|
|||
if (!common::AnfAlgo::IsDynamicShape(cnode)) {
|
||||
MS_LOG(EXCEPTION) << "The node is not dynamic shape: " << cnode->fullname_with_scope();
|
||||
}
|
||||
|
||||
// update output size after InferShape.
|
||||
if (unknow_type_ != device::ascend::UnknowShapeOpType::DEPEND_COMPUTE) {
|
||||
AscendKernelMod::UpdateOutputSizeList();
|
||||
}
|
||||
AscendKernelMod::UpdateOutputSizeList();
|
||||
|
||||
MS_LOG(INFO) << "UpdateExtInfo of " << cnode->fullname_with_scope() << " start";
|
||||
auto input_num = common::AnfAlgo::GetInputTensorNum(cnode);
|
||||
|
|
Loading…
Reference in New Issue