| 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: |