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

Method f

tensorflow/python/kernel_tests/relu_op_test.py:481–486  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

479 with self.cached_session():
480
481 def f(x):
482 with backprop.GradientTape(persistent=True) as tape:
483 tape.watch(x)
484 y = nn_ops.elu(x)
485 dy = tape.gradient(y, x)
486 return tape.gradient(dy, x)
487
488 for x in [-1., -0.5, 0.5, 1.]:
489 got = self.evaluate(f(constant_op.constant(x)))

Callers

nothing calls this directly

Calls 3

gradientMethod · 0.80
GradientTapeMethod · 0.45
watchMethod · 0.45

Tested by

no test coverage detected