forked from mindspore-Ecosystem/mindspore
ci_format
This commit is contained in:
parent
cd2d2bef0a
commit
a6795ffb72
|
@ -20,7 +20,6 @@
|
|||
namespace mindspore {
|
||||
namespace opt {
|
||||
namespace irpass {
|
||||
|
||||
AnfNodePtr BoolScalarEliminate::operator()(const OptimizerPtr &optimizer, const AnfNodePtr &node) {
|
||||
auto cnode = node->cast<CNodePtr>();
|
||||
if (cnode == nullptr) {
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
|
||||
namespace mindspore {
|
||||
namespace pipeline {
|
||||
|
||||
void PrimBpropOptGraphLevel2Info::TryFreeArgsValue(const ValuePtrList &op_args, const ValuePtr &out) {
|
||||
// args_value_using_info_ contains out
|
||||
if (args_value_using_info_.size() != op_args.size() + 1) {
|
||||
|
@ -77,7 +76,6 @@ void PrimBpropOptGraphLevel2Info::AnalysisNodeUsingInfo(const NodeUsersMap &node
|
|||
ParamUsingInfo *arg_info) const {
|
||||
MS_EXCEPTION_IF_NULL(arg_info);
|
||||
auto iter = node_users.find(param);
|
||||
|
||||
if (iter == node_users.end()) {
|
||||
arg_info->using_flg_ = false;
|
||||
return;
|
||||
|
|
|
@ -101,7 +101,6 @@ std::vector<AnfNodePtr> TopoSort(const AnfNodePtr &root, const SuccFunc &succ, c
|
|||
// search the cnodes inside this graph only
|
||||
std::vector<CNodePtr> BroadFirstSearchGraphCNodes(const std::vector<CNodePtr> &starts) {
|
||||
std::vector<CNodePtr> todo;
|
||||
todo.reserve(1024);
|
||||
todo.insert(todo.end(), starts.begin(), starts.end());
|
||||
auto seen = NewSeenGeneration();
|
||||
size_t top_idx = 0;
|
||||
|
@ -151,7 +150,6 @@ CNodePtr BroadFirstSearchFirstOf(const std::vector<CNodePtr> &starts, const Matc
|
|||
|
||||
std::vector<FuncGraphPtr> BroadFirstSearchGraphUsed(const FuncGraphPtr &root) {
|
||||
std::vector<FuncGraphPtr> todo;
|
||||
todo.reserve(128);
|
||||
todo.push_back(root);
|
||||
auto seen = NewSeenGeneration();
|
||||
size_t top_idx = 0;
|
||||
|
@ -241,7 +239,6 @@ std::vector<AnfNodePtr> SuccIncoming(const AnfNodePtr &node) {
|
|||
|
||||
std::vector<AnfNodePtr> SuccIncludeFV(const FuncGraphPtr &fg, const AnfNodePtr &node) {
|
||||
std::vector<AnfNodePtr> vecs;
|
||||
vecs.reserve(128);
|
||||
if (node == nullptr) {
|
||||
return vecs;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue