Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ test_function
Method
test_function
tensorflow/python/autograph/impl/api_test.py:287–290 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
285
self.x = x
286
287
def
test_function(self):
288
if
self.x < 0:
289
return
-self.x
290
return
self.x
291
292
tc = TestClass(constant_op.constant(-1))
293
test_method = types.MethodType(test_function, tc)
Callers
1
test_on_batch
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected