Home
last modified time | relevance | path

Searched defs:SymbolTree (Results 1 – 22 of 22) sorted by relevance

/third_party/mindspore/mindspore-src/source/tests/ut/python/rewrite/
Dtest_subtree_net.py51 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):
Dtest_net_simple.py66 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):
Dtest_node_mathops.py37 def erase_node_mathops_add(stree: SymbolTree):
47 def modify_node_multiply_value(stree: SymbolTree):
55 def transform(stree: SymbolTree):
Dutils.py19 def get_symbol_tree_nodes_count(stree: SymbolTree):
26 def get_node_by_index(stree: SymbolTree, index):
Dtest_cellcontainer.py153 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/
Dclass_def_parser.py110 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):
Dconstant_parser.py31 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):
Dcontainer_parser.py31 def process(self, stree: SymbolTree, node: list, node_manager: NodeManager):
64 def process(self, stree: SymbolTree, node: tuple, node_manager: NodeManager):
Dwhile_parser.py31 def process(self, stree: SymbolTree, node: ast.While, node_manager: NodeManager):
Dreturn_parser.py31 def process(self, stree: SymbolTree, node: ast.Return, node_manager: NodeManager):
Dif_parser.py31 def process(self, stree: SymbolTree, node: ast.If, node_manager: NodeManager):
Darguments_parser.py31 def process(self, stree: SymbolTree, ast_node: ast.arguments, node_manager: NodeManager):
Dattribute_parser.py30 def process(self, stree: SymbolTree, node: ast.Attribute, node_manager: NodeManager):
Dfor_parser.py31 def process(self, stree: SymbolTree, node: ast.For, node_manager: NodeManager):
Dexpr_parser.py36 def process(self, stree: SymbolTree, node: ast.Expr, node_manager: NodeManager):
Dfunction_def_parser.py49 def process(self, stree: SymbolTree, ast_node: ast.FunctionDef, node_manager: NodeManager):
Dmodule_parser.py104 def process(self, stree: SymbolTree, node: ast.Module, node_manager: NodeManager):
Dassign_parser.py137 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/
Drewrite_obfuscation.py439 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/
Dpattern_engine.py283 def _multi_to_multi_replace(stree: SymbolTree, old_root: Node, matched_dict: OrderedDict,
319 def apply(self, stree: SymbolTree) -> bool:
Dsymbol_tree.py28 class SymbolTree: class
/third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/rewrite/symbol_tree/
Dsymbol_tree.py121 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) -> …