forked from mindspore-Ecosystem/mindspore
code check clean
This commit is contained in:
parent
2138dd1d70
commit
ab3744c187
|
@ -120,7 +120,7 @@ std::vector<KernelWithIndex> GetNeighborFraczNodes(const FuncGraphManagerPtr &ma
|
|||
if (node_name == kUpdateStateName || node_name == kTransDataOpName) {
|
||||
return ret;
|
||||
} else if (kInOutOperatorSet.find(node_name) != kInOutOperatorSet.end()) {
|
||||
ret.emplace_back(cnode->input(index + 1), index);
|
||||
(void)ret.emplace_back(cnode->input(index + 1), index);
|
||||
auto output = GetOutputItem(manager, cnode, groups, index);
|
||||
if (output != nullptr) {
|
||||
std::transform(node_user[output].begin(), node_user[output].end(), std::back_inserter(ret),
|
||||
|
@ -147,9 +147,9 @@ std::vector<KernelWithIndex> GetNeighborFraczNodes(const FuncGraphManagerPtr &ma
|
|||
AnfAlgo::SetNodeAttr(kAttrFracZGroup, MakeValue(groups), input);
|
||||
input = input->cast<CNodePtr>()->input(1);
|
||||
}
|
||||
ret.emplace_back(input, item_index);
|
||||
(void)ret.emplace_back(input, item_index);
|
||||
} else {
|
||||
ret.emplace_back(input, 0);
|
||||
(void)ret.emplace_back(input, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "backend/optimizer/ascend/format_type/trans_op_format_refine.h"
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include "backend/session/anf_runtime_algorithm.h"
|
||||
#include "backend/optimizer/common/helper.h"
|
||||
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
#include "backend/optimizer/ascend/ir_fission/splitv_fission.h"
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include "backend/session/anf_runtime_algorithm.h"
|
||||
|
||||
namespace mindspore::opt {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
#include "backend/optimizer/ascend/ir_fission/transdata_split.h"
|
||||
#include <set>
|
||||
#include "backend/optimizer/ascend/ascend_helper.h"
|
||||
#include "backend/session/anf_runtime_algorithm.h"
|
||||
#include "debug/anf_ir_dump.h"
|
||||
|
|
|
@ -14,10 +14,6 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
#include "backend/optimizer/ascend/ir_fusion/adam_apply_one_with_decay_rule.h"
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "backend/session/anf_runtime_algorithm.h"
|
||||
#include "ir/primitive.h"
|
||||
#include "backend/optimizer/common/helper.h"
|
||||
|
|
|
@ -17,10 +17,6 @@
|
|||
*/
|
||||
|
||||
#include "backend/optimizer/common/pattern_engine.h"
|
||||
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <functional>
|
||||
#include "frontend/optimizer/opt.h"
|
||||
#include "ir/anf.h"
|
||||
#include "utils/convert_utils_base.h"
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "backend/optimizer/pass/adjust_depend_for_parallel_optimizer_recompute_all_gather.h"
|
||||
#include <memory>
|
||||
#include <unordered_map>
|
||||
#include <algorithm>
|
||||
#include "utils/utils.h"
|
||||
#include "backend/session/anf_runtime_algorithm.h"
|
||||
|
||||
|
|
|
@ -14,9 +14,6 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
#include "backend/optimizer/pass/convert_attr_to_unify_mindir.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "utils/check_convert_utils.h"
|
||||
#include "backend/session/anf_runtime_algorithm.h"
|
||||
#include "backend/kernel_compiler/common_utils.h"
|
||||
|
|
|
@ -14,10 +14,6 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
#include "backend/optimizer/pass/convert_const_input_to_attr.h"
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
#include "backend/optimizer/common/const_input_to_attr_registry.h"
|
||||
#include "backend/optimizer/common/helper.h"
|
||||
#include "utils/utils.h"
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "backend/optimizer/pass/erase_visit_attr.h"
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include "backend/kernel_compiler/common_utils.h"
|
||||
#include "backend/session/anf_runtime_algorithm.h"
|
||||
|
|
Loading…
Reference in New Issue