Home
last modified time | relevance | path

Searched refs:body_scope (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/
Dactivity_test.py423 body_scope = anno.getanno(fn_node, NodeAnno.BODY_SCOPE)
424 self.assertScopeIs(body_scope, ('b',), ())
425 self.assertScopeIs(body_scope.parent, ('b',), ('a', 'b'))
437 body_scope = anno.getanno(fn_node, NodeAnno.BODY_SCOPE)
438 self.assertScopeIs(body_scope, ('a', 'b'), ())
440 self.assertSymbolSetsAre((), body_scope.params.keys(), 'params')
449 body_scope = anno.getanno(fn_node, NodeAnno.BODY_SCOPE)
450 self.assertScopeIs(body_scope, ('b',), ())
451 self.assertSymbolSetsAre((), body_scope.params.keys(), 'params')
460 body_scope = anno.getanno(fn_node, NodeAnno.BODY_SCOPE)
[all …]
Dliveness.py128 body_scope = anno.getanno(node, annos.NodeAnno.BODY_SCOPE)
129 for qn in body_scope.modified:
Dreaching_definitions.py202 body_scope = anno.getanno(node, annos.NodeAnno.BODY_SCOPE)
203 parent_out_state -= body_scope.modified
/external/tensorflow/tensorflow/python/autograph/converters/
Dcontrol_flow.py193 body_scope = anno.getanno(node, annos.NodeAnno.BODY_SCOPE)
202 body_scope, defined_in, node.body)
208 modified_in_cond = body_scope.modified | orelse_scope.modified
222 created_in_body = body_scope.modified & returned_from_cond - defined_in
243 self.ctx.namer.new_symbol(s.ssf(), body_scope.referenced)
256 cond_var_name = self.ctx.namer.new_symbol('cond', body_scope.referenced)
257 body_name = self.ctx.namer.new_symbol('if_true', body_scope.referenced)
259 all_referenced = body_scope.referenced | orelse_scope.referenced
316 body_scope = anno.getanno(node, annos.NodeAnno.BODY_SCOPE)
320 reserved_symbols = body_scope.referenced
[all …]
/external/tensorflow/tensorflow/cc/ops/
Dwhile_loop.cc128 Scope body_scope = in CreateBody() local
130 TF_RETURN_IF_ERROR(body(body_scope, inputs, outputs)); in CreateBody()