MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / identity

Method identity

tensorflow/python/eager/backprop_test.py:181–184  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

179
180 @custom_gradient.custom_gradient
181 def identity(x):
182 def grad(_):
183 return [] # This return value is wrong!
184 return x, grad
185
186 x = variables.Variable(1.0)
187 with backprop.GradientTape() as t:

Callers 15

testIdentityMethod · 0.45
decoratedFunction · 0.45
testMultiCpuPlacementMethod · 0.45
testShouldCopyMethod · 0.45
benchmark_tf_identityMethod · 0.45
fMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected