Home
last modified time | relevance | path

Searched refs:hasval (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/contrib/py2tf/pyct/static_analysis/
Dtype_info_test.py37 self.assertFalse(scope.hasval('foo'))
40 self.assertTrue(scope.hasval('foo'))
42 self.assertFalse(scope.hasval('baz'))
49 self.assertTrue(child.hasval('foo'))
50 self.assertTrue(scope.hasval('foo'))
53 self.assertTrue(child.hasval('bar'))
54 self.assertFalse(scope.hasval('bar'))
Dtype_info.py59 def hasval(self, name): member in Scope
61 (self.parent is not None and self.parent.hasval(name)))
138 elif isinstance(node.ctx, gast.Load) and self.scope.hasval(qn):