Home
last modified time | relevance | path

Searched refs:setanno (Results 1 – 19 of 19) sorted by relevance

/external/tensorflow/tensorflow/python/autograph/pyct/
Danno_test.py40 anno.setanno(node, 'foo', 3)
57 anno.setanno(node_1, 'foo', 3)
71 anno.setanno(node, 'spam', 1)
72 anno.setanno(node, 'ham', 1)
73 anno.setanno(node.body[0], 'ham', 1)
Danno.py44 setanno(node, self, value)
138 def setanno(node, key, value, field_name='___pyct_anno'): function
158 setanno(
178 setanno(n, copy_map[k], getanno(n, k, field_name), field_name)
Dorigin_info.py209 anno.setanno(node, 'lineno', node.lineno)
210 anno.setanno(node, anno.Basic.ORIGIN, origin)
293 anno.setanno(n, anno.Basic.ORIGIN, origin)
Dqual_names.py236 anno.setanno(node, anno.Basic.QN, QN(node.id))
242 anno.setanno(node, anno.Basic.QN,
263 anno.setanno(node, anno.Basic.QN,
Dast_util_test.py85 anno.setanno(node, 'foo', 'bar')
118 anno.setanno(node, 'foo', 'bar')
119 anno.setanno(node, 'baz', 1)
Dtransformer_test.py58 anno.setanno(node, 'loop_state', self.state[LoopState].value)
59 anno.setanno(node, 'cond_state', self.state[CondState].value)
126 anno.setanno(node, 'cond_state', self.state[CondState].value)
Dtransformer.py471 anno.setanno(n, anno.Basic.ORIGIN, inherited_origin)
Dorigin_info_test.py50 anno.setanno(node, anno.Basic.ORIGIN, fake_origin)
/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/
Dliveness.py127 anno.setanno(node, anno.Static.LIVE_VARS_IN,
153 anno.setanno(node, anno.Static.LIVE_VARS_OUT, frozenset(stmt_live_out))
165 anno.setanno(node, anno.Static.LIVE_VARS_IN, stmt_live_in)
200 anno.setanno(node, anno.Static.LIVE_VARS_OUT,
Dreaching_fndefs.py158 anno.setanno(node, anno.Static.DEFINED_FNS_IN,
164 anno.setanno(extra_node, anno.Static.DEFINED_FNS_IN,
Dreaching_definitions.py218 anno.setanno(node, anno.Static.DEFINITIONS,
221 anno.setanno(node, anno.Static.DEFINITIONS,
231 anno.setanno(node, anno.Static.DEFINED_VARS_IN, frozenset(node_defined_in))
Dtype_inference.py230 anno.setanno(node, anno.Static.TYPES, tuple(types))
292 anno.setanno(node, anno.Static.VALUE, value)
331 anno.setanno(node, anno.Static.VALUE, static_value)
354 anno.setanno(node, anno.Static.VALUE, static_value)
Dactivity.py339 anno.setanno(node, tag, node_scope)
455 anno.setanno(node, NodeAnno.ARGS_SCOPE, node_scope)
635 anno.setanno(node.body, anno.Static.SCOPE, self.scope)
662 anno.setanno(node, NodeAnno.COND_SCOPE, node_scope)
690 anno.setanno(node, NodeAnno.COND_SCOPE, node_scope)
/external/tensorflow/tensorflow/python/autograph/converters/
Ddirectives.py114 anno.setanno(target, anno.Basic.DIRECTIVES, node_anno)
123 anno.setanno(node, STATIC_VALUE, self.ctx.info.namespace[node.id])
131 anno.setanno(node, STATIC_VALUE, getattr(parent_val, node.attr))
Dfunctions.py66 anno.setanno(node, 'function_context_name', function_context_name)
88 anno.setanno(node, 'function_context_name', function_context_name)
Dbreak_statements_test.py58 anno.setanno(node.body[0], anno.Basic.DIRECTIVES, fake_annotation)
88 anno.setanno(node.body[0], anno.Basic.DIRECTIVES, fake_annotation)
Dreturn_statements.py117 anno.setanno(node, STMT_DEFINITELY_RETURNS, True)
141 anno.setanno(node, BODY_DEFINITELY_RETURNS, True)
146 anno.setanno(node, ORELSE_DEFINITELY_RETURNS, True)
314 anno.setanno(node, anno.Basic.EXTRA_LOOP_TEST, extra_test)
Dbreak_statements.py177 anno.setanno(new_for_node, anno.Basic.EXTRA_LOOP_TEST, extra_test)
/external/tensorflow/tensorflow/python/eager/
Dgradient_input_output_exclusions.py158 anno.setanno(node, "static_value", self.ctx.info.namespace[node.id])
166 anno.setanno(node, "static_value", getattr(parent_val, node.attr))