Searched refs:body_scope (Results 1 – 6 of 6) sorted by relevance
/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/ |
D | activity_py3_test.py | 45 body_scope = anno.getanno(fn_node, NodeAnno.BODY_SCOPE) 47 body_scope, ('nonlocal_a', 'nonlocal_b', 'c'), ('nonlocal_a',)) 61 body_scope = anno.getanno(fn_node, NodeAnno.BODY_SCOPE) 62 self.assertScopeIs(body_scope, ('b', 'c', 'a'), ('a',)) 63 self.assertSymbolSetsAre(('b',), body_scope.annotations, 'annotations') 84 body_scope = anno.getanno(fn_node, NodeAnno.BODY_SCOPE) 85 self.assertScopeIs(body_scope, ('a',), ()) 86 self.assertSymbolSetsAre((), body_scope.annotations, 'annotations')
|
D | activity_test.py | 711 body_scope = anno.getanno(fn_node, NodeAnno.BODY_SCOPE) 712 self.assertScopeIs(body_scope, ('a',), ('b',)) 721 body_scope = anno.getanno(fn_node, NodeAnno.BODY_SCOPE) 722 self.assertScopeIs(body_scope, ('a', 'list'), ('b',)) 731 body_scope = anno.getanno(fn_node, NodeAnno.BODY_SCOPE) 733 self.assertScopeIs(body_scope, ('a',), ('b', 'c')) 735 self.assertScopeIs(body_scope, ('a',), ('b',)) 744 body_scope = anno.getanno(fn_node, NodeAnno.BODY_SCOPE) 746 self.assertScopeIs(body_scope, ('a', 'b'), ('b', 'c')) 748 self.assertScopeIs(body_scope, ('a', 'b'), ('b',)) [all …]
|
/external/tensorflow/tensorflow/python/autograph/converters/ |
D | control_flow.py | 207 body_scope = anno.getanno(node, annos.NodeAnno.BODY_SCOPE) 211 node, body_scope.bound | orelse_scope.bound) 217 reserved = body_scope.referenced | orelse_scope.referenced 264 body_scope = anno.getanno(node, annos.NodeAnno.BODY_SCOPE) 266 loop_vars, undefined, _ = self._get_block_vars(node, body_scope.bound) 272 reserved = body_scope.referenced 314 body_scope = anno.getanno(node, annos.NodeAnno.BODY_SCOPE) 318 node, body_scope.bound | iter_scope.bound) 324 reserved = body_scope.referenced | iter_scope.referenced
|
D | control_flow_deprecated_py2.py | 201 body_scope = anno.getanno(node, annos.NodeAnno.BODY_SCOPE) 210 body_scope, defined_in) 216 modified_in_cond = body_scope.modified | orelse_scope.modified 229 created_in_body = body_scope.modified & returned_from_cond - defined_in 250 self.ctx.namer.new_symbol(s.ssf(), body_scope.referenced) 263 cond_var_name = self.ctx.namer.new_symbol('cond', body_scope.referenced) 264 body_name = self.ctx.namer.new_symbol('if_true', body_scope.referenced) 266 all_referenced = body_scope.referenced | orelse_scope.referenced 372 body_scope = anno.getanno(node, annos.NodeAnno.BODY_SCOPE) 376 reserved_symbols = body_scope.referenced
|
/external/tensorflow/tensorflow/python/tf_program/ |
D | mlir_gen.py | 241 body_scope = anno.getanno(node, annos.NodeAnno.BODY_SCOPE) 243 modified_in_cond = list(body_scope.modified | orelse_scope.modified) 354 body_scope = anno.getanno(node, annos.NodeAnno.BODY_SCOPE) 358 reserved_symbols = body_scope.referenced 375 body_scope = anno.getanno(node, annos.NodeAnno.BODY_SCOPE) 376 loop_vars, _, _ = self._get_loop_vars(node, body_scope.modified)
|
/external/tensorflow/tensorflow/cc/ops/ |
D | while_loop.cc | 128 Scope body_scope = in CreateBody() local 130 TF_RETURN_IF_ERROR(body(body_scope, inputs, outputs)); in CreateBody()
|