You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

base_pass.cc 18 kB

5 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
4 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
4 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
4 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
4 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
4 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc modified: ge/graph/passes/base_pass.cc modified: ge/graph/passes/base_pass.h modified: ge/graph/passes/folding_pass.cc modified: ge/graph/passes/infer_base_pass.h modified: ge/graph/passes/infer_value_range_pass.cc modified: ge/graph/passes/infer_value_range_pass.h modified: ge/graph/passes/infershape_pass.cc modified: ge/graph/passes/infershape_pass.h modified: ge/graph/passes/merge_pass.cc modified: ge/graph/passes/switch_dead_branch_elimination.cc modified: ge/graph/preprocess/graph_preprocess.cc
4 years ago
5 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. /**
  2. * Copyright 2020 Huawei Technologies Co., Ltd
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #include "graph/passes/base_pass.h"
  17. #include <queue>
  18. #include <unordered_set>
  19. #include "common/debug/log.h"
  20. #include "graph/utils/graph_utils.h"
  21. namespace ge {
  22. namespace {
  23. constexpr int kMaxRePassTimes = 10000;
  24. constexpr size_t kMaxOneInNodes = 1000;
  25. // Each iteration, we take about 0.3k memory on the stack, we should change the recursion to loop later
  26. constexpr int kMaxRecursiveDepth = 20;
  27. void GetAllNodesNoInputEdge(const ComputeGraphPtr &graph,
  28. GEPass::GraphLevelState &g_state) {
  29. for (auto &node : graph->GetDirectNode()) {
  30. if (node == nullptr) {
  31. continue;
  32. }
  33. size_t in_nums = node->GetInNodes().size();
  34. if (in_nums == 0) {
  35. g_state.AddNodeToQueueIfNotSeen(node);
  36. } else if (in_nums > kMaxOneInNodes) {
  37. g_state.nodes_last.insert(node);
  38. }
  39. }
  40. }
  41. bool AllNodesIn(const Node::Vistor<NodePtr> &nodes, const std::unordered_set<NodePtr> &nodes_set) {
  42. return !std::any_of(nodes.begin(), nodes.end(), [&](const NodePtr &n) {
  43. return nodes_set.count(n) > 0;
  44. });
  45. }
  46. void AddNextIterNodes(const NodePtr &cur_node, GEPass::GraphLevelState &g_state) {
  47. const auto &nodes_suspend = g_state.nodes_suspend;
  48. for (auto &node : cur_node->GetOutNodes()) {
  49. if (node == nullptr) {
  50. continue;
  51. }
  52. if (g_state.nodes_last.count(node) != 0) {
  53. continue;
  54. }
  55. if (nodes_suspend.count(node) > 0) {
  56. GELOGD("The node %s has suspend by pass, skip it.", node->GetName().c_str());
  57. continue;
  58. }
  59. if (node->IsAllInNodesSeen(g_state.nodes_seen) && AllNodesIn(node->GetInAllNodes(), nodes_suspend)) {
  60. g_state.AddNodeToQueueIfNotSeen(node);
  61. }
  62. }
  63. }
  64. void AddImmediateRepassNodesToQueue(NodePtr &cur_node, const std::pair<std::string, BaseNodePass *> &name_to_pass,
  65. const std::unordered_set<NodePtr> &nodes_im_re_pass,
  66. GEPass::GraphLevelState &g_state) {
  67. for (const auto &node : nodes_im_re_pass) {
  68. if (node == nullptr) {
  69. GELOGW("Found null immediately re-pass node when executing pass %s on node %s type %s", name_to_pass.first.c_str(),
  70. cur_node->GetName().c_str(), cur_node->GetType().c_str());
  71. continue;
  72. }
  73. if (g_state.nodes_passed.count(node) > 0) {
  74. g_state.AddNodeToQueueFront(node);
  75. continue;
  76. }
  77. // exp: constant folding add new const need repass immediate
  78. if (AllNodesIn(node->GetInAllNodes(), g_state.nodes_passed)) {
  79. g_state.AddNodeToQueueFront(node);
  80. continue;
  81. }
  82. GELOGW("The node %s specified by pass %s has un-passed in_nodes, it will not repass immediately",
  83. node->GetName().c_str(), name_to_pass.first.c_str());
  84. }
  85. }
  86. void AddLastNodesToQueue(GEPass::GraphLevelState &g_state) {
  87. for (auto &node : g_state.nodes_last) {
  88. // todo 为什么会在node_seen中看到node_last,blame一下看看历史合入记录
  89. if (node->IsAllInNodesSeen(g_state.nodes_seen)) {
  90. g_state.AddNodeToQueueIfNotSeen(node);
  91. }
  92. }
  93. g_state.nodes_last.clear();
  94. }
  95. void SuspendAndResume(const std::string &pass_name,
  96. const std::unordered_set<NodePtr> &nodes_suspend,
  97. const std::unordered_set<NodePtr> &nodes_resume,
  98. GEPass::GraphLevelState &g_state) {
  99. // TODO 当前没有记录NodePass中suspend和resume的顺序,因此无法辨别NodePass中是先做Suspend还是Resume。
  100. // 因此此处的简单处理是如果在NodePass的过程中,触发了suspend/resume,那么框架以resume为准
  101. // 更好的处理方式是,在NodePass做suspend/resume时,做顺序的记录,在此函数中按序做回放
  102. for (const auto &node : nodes_suspend) {
  103. GELOGD("The iteration suspend of node %s has been set by pass %s", node->GetName().c_str(), pass_name.c_str());
  104. g_state.nodes_suspend.insert(node);
  105. }
  106. for (const auto &node : nodes_resume) {
  107. if (g_state.nodes_suspend.erase(node) > 0) {
  108. if (g_state.nodes_seen.count(node.get()) > 0 || node->IsAllInNodesSeen(g_state.nodes_seen)) {
  109. g_state.nodes.push_back(node);
  110. GELOGD("Node %s has been resumed by pass %s", node->GetName().c_str(), pass_name.c_str());
  111. }
  112. }
  113. }
  114. }
  115. void PushToRePassIfSeen(NodePtr &node, const std::pair<std::string, BaseNodePass *> &name_to_pass,
  116. std::unordered_set<Node *> &nodes_seen, const std::unordered_set<NodePtr> &nodes_to_re_pass,
  117. std::unordered_set<NodePtr> &nodes_re_pass) {
  118. for (const auto &node_to_re_pass : nodes_to_re_pass) {
  119. if (node_to_re_pass == nullptr) {
  120. GELOGW("Found null re-pass node when executing %s on node %s type %s", name_to_pass.first.c_str(),
  121. node->GetName().c_str(), node->GetType().c_str());
  122. continue;
  123. }
  124. if (nodes_seen.count(node_to_re_pass.get()) > 0 || node_to_re_pass->IsAllInNodesSeen(nodes_seen)) {
  125. GELOGD("The node %s will be re-pass.", node_to_re_pass->GetName().c_str());
  126. nodes_re_pass.insert(node_to_re_pass);
  127. } else {
  128. GELOGD("The node %s are not all seen, don't set repass this time", node_to_re_pass->GetName().c_str());
  129. }
  130. }
  131. }
  132. void SetFlagOption(NodePassOption option, NamesToPass names_to_pass) {
  133. for (auto &name_to_pass : names_to_pass) {
  134. name_to_pass.second->SetOption(option, "");
  135. }
  136. }
  137. void ClearOption(NamesToPass names_to_pass) {
  138. for (auto &name_to_pass : names_to_pass) {
  139. name_to_pass.second->ClearOptions();
  140. }
  141. }
  142. bool ShouldNodePassActually(const NodePtr &node, const GEPass::GraphLevelState &g_state) {
  143. if (node == nullptr) {
  144. GELOGW("node is null");
  145. return false;
  146. }
  147. // 因为在PassNode之前,会首先将node的输出节点添加queue,因此若在pass node时,删除了node的输出节点,
  148. // 那么会出现:已经删除的节点出现在queue中,并且被pop出来,因此这里做确认,如果node已经被删除过了,就跳过pass
  149. if (g_state.nodes_deleted.count(node) > 0) {
  150. GELOGD("The node %s was deleted before, skip it.", node->GetName().c_str());
  151. return false;
  152. }
  153. // 因为在PassNode之前,会首先将node的输出节点添加queue,因此若在pass node时,suspend了node的输出节点,后续逻辑与上面相同
  154. // TODO 需要注意的是,这里的保证是一次”尽力而为“,若pass node时,将node之前的节点`A`添加到了suspend,
  155. // 那么`A`节点的后继和间接后继节点的pass不会受到suspend的影响
  156. // 理论上来说,如果在pass node之前,首先收集node的输出节点,在pass后,将输出节点做suspend、delete的去除,然后加queue,
  157. // 这样处理就不需要在这里做额外的确认了
  158. if (g_state.nodes_suspend.count(node) > 0) {
  159. GELOGD("The node %s has been added to suspend-iteration nodes list, the iteration of it will be suspend.",
  160. node->GetName().c_str());
  161. return false;
  162. }
  163. if (!AllNodesIn(node->GetInAllNodes(), g_state.nodes_suspend)) {
  164. GELOGD("The node %s has been added to suspend-iteration nodes list, the iteration of it will be suspend.",
  165. node->GetName().c_str());
  166. return false;
  167. }
  168. return true;
  169. }
  170. } // namespace
  171. Status BaseNodePass::IsolateAndDeleteNode(NodePtr &node, const std::vector<int> &io_map,
  172. bool is_repass_io_immediately) {
  173. if (node == nullptr) {
  174. REPORT_INNER_ERROR("E19999", "Param node is nullptr, check invalid.");
  175. GELOGE(FAILED, "[Check][Param] parameter node is nullptr.");
  176. return FAILED;
  177. }
  178. GELOGI("Prepare to isolate and delete node, name:%s, type:%s.", node->GetName().c_str(),
  179. node->GetType().c_str());
  180. ComputeGraphPtr graph = node->GetOwnerComputeGraph();
  181. if (graph == nullptr) {
  182. REPORT_INNER_ERROR("E19999", "The owner graph of node:%s must not be null.", node->GetName().c_str());
  183. GELOGE(FAILED, "[Get][OwnerComputeGraph] failed, The owner graph of node:%s must not be null.",
  184. node->GetName().c_str());
  185. return FAILED;
  186. }
  187. is_repass_io_immediately ? AddImmediateRePassNodesWithInOut(node) : AddRePassNodesWithInOut(node);
  188. if (GraphUtils::IsolateNode(node, io_map) != GRAPH_SUCCESS) {
  189. REPORT_CALL_ERROR("E19999", "Isolate Node:%s failed", node->GetName().c_str());
  190. GELOGE(FAILED, "[Isolate][Node] %s failed.", node->GetName().c_str());
  191. return FAILED;
  192. }
  193. if (GraphUtils::RemoveNodeWithoutRelink(graph, node) != SUCCESS) {
  194. REPORT_CALL_ERROR("E19999", "call RemoveNodeWithoutRelink for node:%s failed.", node->GetName().c_str());
  195. GELOGE(FAILED, "[Call][RemoveNodeWithoutRelink] for node:%s failed.", node->GetName().c_str());
  196. return FAILED;
  197. }
  198. AddNodeDeleted(node);
  199. return SUCCESS;
  200. }
  201. Status GEPass::Run(const NamesToPass &names_to_passes) {
  202. if (graph_ == nullptr) {
  203. REPORT_INNER_ERROR("E19999", "graph_ is nullptr, check invalid.");
  204. GELOGE(INTERNAL_ERROR, "[Check][Param] The graph is nullptr");
  205. return INTERNAL_ERROR;
  206. }
  207. if (names_to_passes.empty()) {
  208. GELOGW("No passes input, the GEPass will do nothing");
  209. return INTERNAL_ERROR;
  210. }
  211. for (const auto &name_to_pass : names_to_passes) {
  212. if (name_to_pass.second == nullptr) {
  213. GELOGE(INTERNAL_ERROR, "[Check][Param] There is null pointer in passes(%s)", name_to_pass.first.c_str());
  214. return INTERNAL_ERROR;
  215. }
  216. }
  217. if (depth_ > kMaxRecursiveDepth) {
  218. GELOGE(PARAM_INVALID,
  219. "[Check][Param] The pass for root graph %s will be terminated because too many nesting"
  220. " levels(%d) of subgraphs, last subgraph is %s",
  221. root_graph_->GetName().c_str(), depth_, graph_->GetName().c_str());
  222. return PARAM_INVALID;
  223. }
  224. return RunPassesOneGraph(names_to_passes);
  225. }
  226. void NotifyPassGraphStart(const ComputeGraphPtr &graph, const NamesToPass &names_to_pass) {
  227. for (auto &name_to_pass : names_to_pass) {
  228. name_to_pass.second->OnStartPassGraph(graph);
  229. }
  230. }
  231. Status GEPass::HandleLeakedSuspendNodes(const NamesToPass &names_to_passes, GraphLevelState &g_state) {
  232. for (auto &name_to_pass : names_to_passes) {
  233. name_to_pass.second->init();
  234. auto ret = name_to_pass.second->OnSuspendNodesLeaked();
  235. if (ret != SUCCESS) {
  236. // todo error
  237. return ret;
  238. }
  239. SuspendAndResume(name_to_pass.first,
  240. name_to_pass.second->GetNodesSuspend(),
  241. name_to_pass.second->GetNodesResume(),
  242. g_state);
  243. }
  244. return SUCCESS;
  245. }
  246. Status GEPass::RunPassesOneGraph(const NamesToPass &names_to_passes) {
  247. GELOGD("Begin to run pass on graph, passes count %zu", names_to_passes.size());
  248. NotifyPassGraphStart(graph_, names_to_passes);
  249. GraphLevelState g_state;
  250. g_state.re_pass_times = 0;
  251. GetAllNodesNoInputEdge(graph_, g_state);
  252. GELOGD("Start points count %zu", g_state.nodes.size());
  253. do {
  254. if (!g_state.nodes_suspend.empty()) {
  255. auto ret = HandleLeakedSuspendNodes(names_to_passes, g_state);
  256. if (ret != SUCCESS) {
  257. // todo log
  258. return ret;
  259. }
  260. if (g_state.nodes.empty()) {
  261. // todo 报错,因为suspend泄露场景,没有子类做进一步的resume,此处可能已经彻底泄露,需要报错
  262. return INTERNAL_ERROR;
  263. }
  264. }
  265. auto ret = RunPassesGraphRepass(names_to_passes, g_state);
  266. if (ret != SUCCESS) {
  267. return ret;
  268. }
  269. } while (!g_state.nodes_suspend.empty());
  270. return SUCCESS;
  271. }
  272. Status GEPass::RunPassesGraphRepass(const NamesToPass &names_to_passes, GraphLevelState &g_state) {
  273. RepassLevelState rp_state;
  274. do {
  275. for (auto &node : rp_state.nodes_re_pass) {
  276. g_state.AddNodeToQueue(node);
  277. }
  278. rp_state.nodes_re_pass.clear();
  279. while (!g_state.nodes.empty()) {
  280. auto node = g_state.PopFront();
  281. (void)rp_state.nodes_re_pass.erase(node); // todo 回忆一下为什么
  282. if (!ShouldNodePassActually(node, g_state)) {
  283. continue;
  284. }
  285. g_state.nodes_seen.insert(node.get()); // todo 为什么这里seen
  286. AddNextIterNodes(node, g_state);
  287. auto ret = RunPassesNodeOnce(node, names_to_passes, g_state, rp_state);
  288. if (ret != SUCCESS) {
  289. GELOGE(ret, "[Process][Passes] on node %s type %s failed, error code:%u", node->GetName().c_str(),
  290. node->GetType().c_str(), ret);
  291. return ret;
  292. }
  293. }
  294. AddLastNodesToQueue(g_state);
  295. } while ((!rp_state.nodes_re_pass.empty() || !g_state.nodes.empty()) && ++g_state.re_pass_times < kMaxRePassTimes);
  296. if (g_state.re_pass_times == kMaxRePassTimes) {
  297. GELOGW("re_pass_times should not come to %d", kMaxRePassTimes);
  298. }
  299. GELOGD("All passes runs end");
  300. return SUCCESS;
  301. }
  302. Status GEPass::RunPassesOnSubGraph(const NodePtr &node, const NamesToPass &names_to_passes, bool &has_sub_graph) {
  303. auto sub_graph_names = node->GetOpDesc()->GetSubgraphInstanceNames();
  304. has_sub_graph = false;
  305. for (const auto &name : sub_graph_names) {
  306. auto graph = root_graph_->GetSubgraph(name);
  307. if (graph == nullptr) {
  308. GELOGW("Can not find the sub graph %s from node %s, the pass-process will skip it",
  309. name.c_str(), node->GetName().c_str());
  310. continue;
  311. }
  312. has_sub_graph = true;
  313. GELOGI("Begin to run passes on the sub graph %s of node %s", name.c_str(), node->GetName().c_str());
  314. GEPass pass(graph, root_graph_, depth_ + 1);
  315. auto ret = pass.Run(names_to_passes);
  316. if (ret != SUCCESS) {
  317. GELOGE(ret, "[Run][Passes] for sub graph:%s from node:%s failed", name.c_str(), node->GetName().c_str());
  318. return ret;
  319. }
  320. }
  321. return SUCCESS;
  322. }
  323. Status GEPass::RunPassesNodeOnce(NodePtr &node, const NamesToPass &names_to_passes,
  324. GraphLevelState &g_state, RepassLevelState &rp_state) {
  325. auto ret = RunPassesOnNode(node, names_to_passes, g_state, rp_state);
  326. if (ret != SUCCESS) {
  327. GELOGE(ret, "[Process][Passes] on node %s type %s failed, error code:%u", node->GetName().c_str(),
  328. node->GetType().c_str(), ret);
  329. return ret;
  330. }
  331. bool has_sub_graph = false;
  332. ret = RunPassesOnSubGraph(node, names_to_passes, has_sub_graph);
  333. if (ret != SUCCESS) {
  334. GELOGE(ret, "[Run][Passes] on the sub graph of node %s failed", node->GetName().c_str());
  335. return ret;
  336. }
  337. if (has_sub_graph) {
  338. GELOGD("There are subgraphs on node %s, run passes for for the second time", node->GetName().c_str());
  339. SetFlagOption(kOptimizeAfterSubGraph, names_to_passes);
  340. ret = RunPassesOnNode(node, names_to_passes, g_state, rp_state);
  341. if (ret != SUCCESS) {
  342. GELOGE(ret, "[Process][Passes] on node %s type %s failed, error code: %u", node->GetName().c_str(),
  343. node->GetType().c_str(), ret);
  344. return ret;
  345. }
  346. // There is only one option scene, so set and clear options around the `RunPasses` func.
  347. // if there are more than one scene to set options, the `ClearOption` function
  348. // should be called each time at the begin of the iteration
  349. ClearOption(names_to_passes);
  350. }
  351. return SUCCESS;
  352. }
  353. Status GEPass::RunPassesOnNode(NodePtr &node, const NamesToPass &names_to_passes, GraphLevelState &g_state,
  354. RepassLevelState &rp_state) {
  355. if (node == nullptr) {
  356. REPORT_INNER_ERROR("E19999", "Param node is nullptr, check invalid.");
  357. GELOGE(FAILED, "[Check][Param] parameter node is nullptr.");
  358. return FAILED;
  359. }
  360. GELOGD("Begin to run pass for node %s", node->GetName().c_str());
  361. for (const auto &name_to_pass : names_to_passes) {
  362. GELOGD("Begin to run pass %s for node %s", name_to_pass.first.c_str(), node->GetName().c_str());
  363. name_to_pass.second->init();
  364. auto result = name_to_pass.second->Run(node);
  365. if (result != SUCCESS) {
  366. REPORT_CALL_ERROR("E19999", "process pass %s on node:%s failed, ret:%u",
  367. name_to_pass.first.c_str(), node->GetName().c_str(), result);
  368. GELOGE(INTERNAL_ERROR, "[Process][Pass] %s on node %s failed, result "
  369. "%u, the passes will be terminated immediately.",
  370. name_to_pass.first.c_str(), node->GetName().c_str(), result);
  371. return result;
  372. }
  373. if (name_to_pass.second->GetNodesDeleted().count(node) > 0) {
  374. GELOGD("The node %s was deleted by pass %s, stop the remain passes", node->GetName().c_str(),
  375. name_to_pass.first.c_str());
  376. break;
  377. }
  378. }
  379. g_state.nodes_passed.insert(node);
  380. for (const auto &name_to_pass : names_to_passes) {
  381. PushToRePassIfSeen(node, name_to_pass, g_state.nodes_seen,
  382. name_to_pass.second->GetNodesNeedRePass(),
  383. rp_state.nodes_re_pass);
  384. AddImmediateRepassNodesToQueue(node, name_to_pass,
  385. name_to_pass.second->GetNodesNeedRePassImmediately(),
  386. g_state);
  387. SuspendAndResume(name_to_pass.first,
  388. name_to_pass.second->GetNodesSuspend(),
  389. name_to_pass.second->GetNodesResume(),
  390. g_state);
  391. const auto &nodes_deleted_by_pass = name_to_pass.second->GetNodesDeleted();
  392. g_state.nodes_deleted.insert(nodes_deleted_by_pass.begin(), nodes_deleted_by_pass.end());
  393. }
  394. return SUCCESS;
  395. }
  396. } // namespace ge

图引擎模块(GE)是MindSpore的一个子模块,其代码由C++实现,位于前端模块ME和底层硬件之间,起到承接作用。图引擎模块以ME下发的图作为输入,然后进行一系列的深度图优化操作,最后输出一张可以在底层硬件上高效运行的图。GE针对昇腾AI处理器的硬件结构特点,做了特定的优化工作,以此来充分发挥出昇腾AI处理器的强大算力。在进行模型训练/推理时,GE会被自动调用而用户并不感知。GE主要由GE API和GE Core两部分组成,详细的架构图如下所示