MCPcopy 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

VariableMethod · 0.80
appendMethod · 0.45
constantMethod · 0.45

Tested by

no test coverage detected