clean code
This commit is contained in:
parent
e1513a3726
commit
1f07b9bc6c
|
@ -79,7 +79,6 @@ std::vector<int64_t> HostCheck::GetFinalInferShape(const AnfNodePtr &node, const
|
|||
bool HostCheck::CheckValidOutputDeviceShape(const AnfNodePtr &node, const size_t output_idx,
|
||||
const std::string &format) {
|
||||
auto infer_shape = GetFinalInferShape(node, output_idx, format);
|
||||
|
||||
if (infer_shape.empty()) {
|
||||
return true;
|
||||
}
|
||||
|
@ -109,6 +108,5 @@ bool HostCheck::CheckValidOutputDeviceShape(const AnfNodePtr &node, const size_t
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace kernel
|
||||
} // namespace mindspore
|
||||
|
|
|
@ -621,7 +621,6 @@ void AscendUnifyMindIR(const std::shared_ptr<session::KernelGraph> &graph) {
|
|||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void AscendDynamicShapeConvert(const std::shared_ptr<session::KernelGraph> &kernel_graph) {
|
||||
auto context_ptr = MsContext::GetInstance();
|
||||
MS_EXCEPTION_IF_NULL(context_ptr);
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
|
||||
namespace mindspore {
|
||||
namespace opt {
|
||||
|
||||
const AnfNodePtr AddDynamicShapeAttr::Process(const FuncGraphPtr &func_graph, const AnfNodePtr &node,
|
||||
const EquivPtr &) const {
|
||||
MS_EXCEPTION_IF_NULL(func_graph);
|
||||
|
|
|
@ -336,7 +336,6 @@ void AscendGraphOptimization::CheckControlFlowDynamicShape(const KernelGraphPtr
|
|||
}
|
||||
memo_.clear();
|
||||
}
|
||||
|
||||
} // namespace ascend
|
||||
} // namespace device
|
||||
} // namespace mindspore
|
||||
|
|
Loading…
Reference in New Issue