public interface IDropout extends Serializable, Cloneable
| Modifier and Type | Method and Description |
|---|---|
INDArray |
applyDropout(INDArray inputActivations,
INDArray resultArray,
int iteration,
int epoch,
LayerWorkspaceMgr workspaceMgr) |
INDArray |
backprop(INDArray gradAtOutput,
INDArray gradAtInput,
int iteration,
int epoch)
Perform backprop.
|
void |
clear()
Clear the internal state (for example, dropout mask) if any is present
|
IDropout |
clone() |
INDArray applyDropout(INDArray inputActivations, INDArray resultArray, int iteration, int epoch, LayerWorkspaceMgr workspaceMgr)
inputActivations - Input activations arrayresultArray - The result array (same as inputArray for in-place ops) for the post-dropout activationsiteration - Current iteration numberepoch - Current epoch numberworkspaceMgr - Workspace manager, if any storage is required (use ArrayType.INPUT)INDArray backprop(INDArray gradAtOutput, INDArray gradAtInput, int iteration, int epoch)
gradAtOutput - Gradients at the output of the dropout op - i.e., dL/dOutgradAtInput - Gradients at the input of the dropout op - i.e., dL/dIn. Use the same array as gradAtOutput
to apply the backprop gradient in-placeiteration - Current iterationepoch - Current epochvoid clear()
IDropout clone()
Copyright © 2021. All rights reserved.