Home
last modified time | relevance | path

Searched refs:hasanno (Results 1 – 17 of 17) sorted by relevance

/external/tensorflow/tensorflow/python/autograph/pyct/
Danno_test.py36 self.assertFalse(anno.hasanno(node, 'foo'))
43 self.assertTrue(anno.hasanno(node, 'foo'))
50 self.assertFalse(anno.hasanno(node, 'foo'))
63 self.assertTrue(anno.hasanno(node_2, 'foo'))
64 self.assertFalse(anno.hasanno(node_2, 'bar'))
77 self.assertTrue(anno.hasanno(node, 'spam'))
78 self.assertTrue(anno.hasanno(node, 'ham'))
79 self.assertTrue(anno.hasanno(node, 'eggs'))
80 self.assertFalse(anno.hasanno(node.body[0], 'eggs'))
Danno.py47 return hasanno(node, self)
134 def hasanno(node, key, field_name='___pyct_anno'): function
157 if hasanno(from_node, key, field_name=field_name):
177 if hasanno(n, k, field_name):
Dtransformer.py433 if anno.hasanno(node, anno.Basic.SKIP_PROCESSING):
437 if anno.hasanno(node, anno.Basic.ORIGIN):
470 if not anno.hasanno(n, anno.Basic.ORIGIN):
521 if anno.hasanno(node, anno.Basic.SKIP_PROCESSING):
526 if anno.hasanno(node, anno.Basic.ORIGIN):
Dqual_names.py241 if anno.hasanno(node.value, anno.Basic.QN):
258 if anno.hasanno(s, anno.Basic.QN):
262 if anno.hasanno(node.value, anno.Basic.QN):
Dast_util_test.py122 self.assertFalse(anno.hasanno(new_node, 'baz'))
Dast_util.py118 if anno.hasanno(node, anno.Basic.QN):
Dcfg.py212 if anno.hasanno(ast_node, anno.Basic.SKIP_PROCESSING):
876 if anno.hasanno(node, anno.Basic.EXTRA_LOOP_TEST):
/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/
Dtype_inference_test.py101 anno.hasanno(fn_body[0].value.elts[0], anno.Static.TYPES))
103 anno.hasanno(fn_body[0].value.elts[1], anno.Static.TYPES))
305 self.assertFalse(anno.hasanno(fn_body[0].value.value, anno.Static.VALUE))
339 self.assertFalse(anno.hasanno(fn_body[0].value, anno.Static.TYPES))
340 self.assertFalse(anno.hasanno(fn_body[0].value.value, anno.Static.VALUE))
341 self.assertFalse(anno.hasanno(fn_body[0].value, anno.Static.VALUE))
374 self.assertFalse(anno.hasanno(fn_body[0].value.value, anno.Static.VALUE))
402 self.assertFalse(anno.hasanno(fn_body[0].value, anno.Static.TYPES))
403 self.assertFalse(anno.hasanno(fn_body[0].value.value, anno.Static.VALUE))
404 self.assertFalse(anno.hasanno(fn_body[0].value, anno.Static.VALUE))
[all …]
Dliveness.py53 if anno.hasanno(node.ast_node, anno.Static.SCOPE):
161 assert anno.hasanno(entry_node, anno.Static.LIVE_VARS_IN), (
Dactivity.py264 if anno.hasanno(node, anno.Basic.QN):
277 if not anno.hasanno(node, anno.Basic.QN):
634 if not anno.hasanno(node.body, anno.Static.SCOPE):
677 if anno.hasanno(node, anno.Basic.EXTRA_LOOP_TEST):
Dreaching_definitions.py130 if anno.hasanno(node.ast_node, anno.Static.SCOPE):
/external/tensorflow/tensorflow/python/eager/
Dgradient_input_output_exclusions.py121 if anno.hasanno(node, anno.Basic.QN):
131 if anno.hasanno(node, anno.Basic.QN):
136 if anno.hasanno(node.value, anno.Basic.QN):
/external/tensorflow/tensorflow/python/autograph/converters/
Dcall_trees.py100 if not anno.hasanno(node, 'function_context_name'):
118 assert anno.hasanno(node, 'function_context_name'), (
Dvariables.py57 if not anno.hasanno(node, anno.Static.ORIG_DEFINITIONS):
Dcontrol_flow.py110 if not anno.hasanno(node, anno.Basic.DIRECTIVES):
335 if anno.hasanno(node, anno.Basic.EXTRA_LOOP_TEST):
Dcontrol_flow_deprecated_py2.py175 if not anno.hasanno(node, anno.Basic.DIRECTIVES):
506 if anno.hasanno(node, anno.Basic.EXTRA_LOOP_TEST):
Dlists.py98 if anno.hasanno(target_node, anno.Basic.QN):