MCPcopy
hub / github.com/tensorflow/tfjs / apply

Method apply

tfjs-layers/src/activations.ts:46–48  ·  view source on GitHub ↗

* Calculate the activation function. * * @param x: Input. * @param alpha: Scaling factor the negative section. * @return Output of the ELU activation.

(x: Tensor, alpha = 1)

Source from the content-addressed store, hash-verified

44 * @return Output of the ELU activation.
45 */
46 apply(x: Tensor, alpha = 1): Tensor {
47 return K.elu(x, alpha);
48 }
49}
50serialization.registerClass(Elu);
51

Callers 15

writeMethod · 0.45
addMethod · 0.45
models_test.tsFile · 0.45
model_save_test.tsFile · 0.45
callbacks_test.tsFile · 0.45
getFunction · 0.45
util_test.tsFile · 0.45

Calls 1

eluMethod · 0.80

Tested by

no test coverage detected