MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TestClass

Class TestClass

tensorflow/python/autograph/impl/api_test.py:68–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 def test_decorator_recursive(self):
67
68 class TestClass(object):
69
70 def called_member(self, a):
71 if a < 0:
72 a = -a
73 return a
74
75 @api.convert(recursive=True)
76 def test_method(self, x, s, a):
77 while tf.reduce_sum(x) > s:
78 x //= self.called_member(a)
79 return x
80
81 tc = TestClass()
82 with self.cached_session() as sess:

Calls 1

convertMethod · 0.45