MCPcopy Create free account
hub / github.com/NVIDIA/DALI / test_method

Method test_method

dali/test/python/autograph/impl/test_api.py:153–156  ·  view source on GitHub ↗
(self, x, s, a)

Source from the content-addressed store, hash-verified

151
152 @api.convert(recursive=True)
153 def test_method(self, x, s, a):
154 while reduce(add, x) > s:
155 x //= self.called_member(a)
156 return x
157
158 tc = TestClass()
159 x = tc.test_method(custom_constant([2, 4]), custom_constant(1), custom_constant(-2))

Calls 3

called_memberMethod · 0.95
other_methodMethod · 0.95
reduceFunction · 0.85

Tested by

no test coverage detected