clean code

This commit is contained in:
hwjiaorui 2022-01-06 16:22:01 +08:00
parent e1513a3726
commit 1f07b9bc6c
4 changed files with 0 additions and 5 deletions

View File

@ -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

View File

@ -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);

View File

@ -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);

View File

@ -336,7 +336,6 @@ void AscendGraphOptimization::CheckControlFlowDynamicShape(const KernelGraphPtr
}
memo_.clear();
}
} // namespace ascend
} // namespace device
} // namespace mindspore