public interface ActivationReLU<T extends Tensor> extends Function<T>
f(x) = 0 if x < 0
x x ≥ 0
[1] Krizhevsky, Alex, Ilya Sutskever, and Geoffrey E. Hinton. "Imagenet classification with deep convolutional neural networks." Advances in neural information processing systems. 2012.
| Modifier and Type | Method and Description |
|---|---|
void |
forward(T input,
T output)
Applies the ReLU operator to each element in the input tensor and saves the results
in the output tensor.
|
void |
setParameters(java.util.List<T> parameters)
Can skip.
|
getOutputShape, getParameters, getParameterShapes, getTensorType, initializevoid setParameters(java.util.List<T> parameters)
setParameters in interface Function<T extends Tensor>parameters - No parameters required