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

Method f

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

Source from the content-addressed store, hash-verified

583 with self.cached_session():
584
585 def f(x):
586 assert x.dtype == dtypes.float32
587 with backprop.GradientTape() as tape:
588 tape.watch(x)
589 y = nn_ops.selu(x)
590 return tape.gradient(y, x)
591
592 x = np.asarray(
593 [[-0.9, -0.7, -0.5, -0.3, -0.1], [0.1, 0.3, 0.5, 0.7, 0.9]],

Callers

nothing calls this directly

Calls 3

gradientMethod · 0.80
GradientTapeMethod · 0.45
watchMethod · 0.45

Tested by

no test coverage detected