Home
last modified time | relevance | path

Searched refs:fn_scope (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/python/autograph/converters/
Dfunctions.py41 def _function_scope_options(self, fn_scope): argument
49 if fn_scope.level == 2:
54 with self.state[_Function] as fn_scope:
58 if fn_scope.level > 2:
65 fn_scope.context_name = function_context_name
74 options=self._function_scope_options(fn_scope).to_ast(),
82 with self.state[_Function] as fn_scope:
87 fn_scope.context_name = function_context_name
92 if fn_scope.level <= 2:
122 options=self._function_scope_options(fn_scope).to_ast(),
Dcall_trees.py104 with self.state[_Function] as fn_scope:
105 fn_scope.context_name = anno.getanno(node, 'function_context_name')
115 with self.state[_Function] as fn_scope:
120 fn_scope.context_name = anno.getanno(node, 'function_context_name')
Dcontrol_flow.py179 fn_scope = self.state[_Function].scope
192 modified - defined_in - fn_scope.globals - fn_scope.nonlocals)
/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/
Dactivity_py3_test.py80 fn_scope = anno.getanno(fn_node, anno.Static.SCOPE)
81 self.assertScopeIs(fn_scope, ('b', 'c'), ('test_fn',))
82 self.assertSymbolSetsAre(('b', 'c'), fn_scope.annotations, 'annotations')
Dliveness.py76 fn_scope = anno.getanno(fn_ast_node, annos.NodeAnno.ARGS_AND_BODY_SCOPE)
79 live_in |= (fn_scope.read - fn_scope.bound)
/external/tensorflow/tensorflow/python/autograph/g3doc/
Dpyct_tutorial.ipynb223 … "fn_scope = anno.getanno(node, annos.NodeAnno.BODY_SCOPE) # Note: tag will be changed soon.\n",
226 "print('read:', fn_scope.read)\n",
227 "print('modified:', fn_scope.modified)"