Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ fn
Method
fn
tensorflow/python/eager/def_function_test.py:79–80 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
77
78
@def_function.function
79
def
fn(x):
80
return
2 * x
81
82
self.assertAllEqual(fn(constant_op.constant(4.0)), 8.0)
83
Callers
nothing calls this directly
Calls
3
Variable
Method · 0.80
append
Method · 0.45
constant
Method · 0.45
Tested by
no test coverage detected