Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ add_one
Method
add_one
tensorflow/python/eager/function_test.py:1111–1112 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
1109
1110
@def_function.function
1111
def
add_one(x):
1112
return
add(x, 1)
1113
1114
self.assertAllEqual(3, add_one(constant_op.constant(2)))
1115
Callers
1
test
Method · 0.45
Calls
2
add
Function · 0.50
assign_add
Method · 0.45
Tested by
no test coverage detected