Searched defs:SymbolTree (Results 1 – 22 of 22) sorted by relevance
| /third_party/mindspore/mindspore-src/source/tests/ut/python/rewrite/ |
| D | test_subtree_net.py | 51 def add_relu_in_conv1(stree: SymbolTree): 72 def replace_bn_in_conv2(stree: SymbolTree): 92 def erase_relu_in_conv2(stree: SymbolTree): 109 def inset_subtree(stree: SymbolTree): 123 def inset_subtree2(stree: SymbolTree): 137 def add_relu_in_conv11(stree: SymbolTree): 158 def transform(stree: SymbolTree):
|
| D | test_net_simple.py | 66 def add_conv_before_flatten(stree: SymbolTree): 84 def add_my_cell_after_x_12(stree: SymbolTree): 103 def erase_node_x_11(stree: SymbolTree): 122 def transform(stree: SymbolTree):
|
| D | test_node_mathops.py | 37 def erase_node_mathops_add(stree: SymbolTree): 47 def modify_node_multiply_value(stree: SymbolTree): 55 def transform(stree: SymbolTree):
|
| D | utils.py | 19 def get_symbol_tree_nodes_count(stree: SymbolTree): 26 def get_node_by_index(stree: SymbolTree, index):
|
| D | test_cellcontainer.py | 153 def _insert_conv(stree: SymbolTree): 181 def _insert_conv(stree: SymbolTree): 276 def _replace_bn(stree: SymbolTree): 319 def _replace_bn(stree: SymbolTree):
|
| /third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/rewrite/parsers/ |
| D | class_def_parser.py | 110 def _process_class_variables(stree: SymbolTree, function_defs: list): 144 def _add_ori_cls_into_father_class(stree: SymbolTree, node: ast.ClassDef, class_type: type): 158 def _process_father_classes(stree: SymbolTree, node: ast.ClassDef, class_type: type) -> list: 178 …def _process_one_father_class(stree: SymbolTree, class_type: type, class_name_ori: str, class_name… 229 def process(self, stree: SymbolTree, node: ast.ClassDef, node_manager: NodeManager):
|
| D | constant_parser.py | 31 def process(self, stree: SymbolTree, node: ast.Name, node_manager: NodeManager): 56 def process(self, stree: SymbolTree, node: ast.Num, node_manager: NodeManager): 81 def process(self, stree: SymbolTree, node: ast.Str, node_manager: NodeManager):
|
| D | container_parser.py | 31 def process(self, stree: SymbolTree, node: list, node_manager: NodeManager): 64 def process(self, stree: SymbolTree, node: tuple, node_manager: NodeManager):
|
| D | while_parser.py | 31 def process(self, stree: SymbolTree, node: ast.While, node_manager: NodeManager):
|
| D | return_parser.py | 31 def process(self, stree: SymbolTree, node: ast.Return, node_manager: NodeManager):
|
| D | if_parser.py | 31 def process(self, stree: SymbolTree, node: ast.If, node_manager: NodeManager):
|
| D | arguments_parser.py | 31 def process(self, stree: SymbolTree, ast_node: ast.arguments, node_manager: NodeManager):
|
| D | attribute_parser.py | 30 def process(self, stree: SymbolTree, node: ast.Attribute, node_manager: NodeManager):
|
| D | for_parser.py | 31 def process(self, stree: SymbolTree, node: ast.For, node_manager: NodeManager):
|
| D | expr_parser.py | 36 def process(self, stree: SymbolTree, node: ast.Expr, node_manager: NodeManager):
|
| D | function_def_parser.py | 49 def process(self, stree: SymbolTree, ast_node: ast.FunctionDef, node_manager: NodeManager):
|
| D | module_parser.py | 104 def process(self, stree: SymbolTree, node: ast.Module, node_manager: NodeManager):
|
| D | assign_parser.py | 137 def _get_inst_and_name(ast_node: ast.Attribute, stree: SymbolTree): 357 def _update_field_in_init(self, func_name: str, sub_tree: SymbolTree) -> bool: 806 def process(self, stree: SymbolTree, node: ast.Assign, node_manager: NodeManager):
|
| /third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/safeguard/ |
| D | rewrite_obfuscation.py | 439 def _insert_input(stree: SymbolTree, arg_name: str = 'y_obf'): 450 def _insert_mul(stree: SymbolTree, node: Node, index: int): 467 def _insert_mul_by_name(stree: SymbolTree, after_name_list: list): 479 def _update_subnet(substree: SymbolTree, subnode: Node):
|
| /third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/rewrite/api/ |
| D | pattern_engine.py | 283 def _multi_to_multi_replace(stree: SymbolTree, old_root: Node, matched_dict: OrderedDict, 319 def apply(self, stree: SymbolTree) -> bool:
|
| D | symbol_tree.py | 28 class SymbolTree: class
|
| /third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/rewrite/symbol_tree/ |
| D | symbol_tree.py | 121 class SymbolTree(Observer, Observable, NodeManager): class 390 node_manager: NodeManager, stree: 'SymbolTree'): 1323 …def convert_stree_to_code_bodies(self, stree: 'SymbolTree', code_bodies: list, dividing_pos=0) -> …
|