public class IdentityLayer extends SameDiffLambdaLayer
SameDiffLayer.Builder<T extends SameDiffLayer.Builder<T>>paramWeightInit, weightInitbiasUpdater, gradientNormalization, gradientNormalizationThreshold, regularization, regularizationBias, updaterconstraints, iDropout, layerName| Constructor and Description |
|---|
IdentityLayer(String name) |
| Modifier and Type | Method and Description |
|---|---|
SDVariable |
defineLayer(SameDiff sameDiff,
SDVariable layerInput)
The defineLayer method is used to define the foward pass for the layer
|
InputType |
getOutputType(int layerIndex,
InputType inputType)
For a given type of input to this layer, what is the type of the output?
|
defineLayer, defineParameters, initializeParametersfeedForwardMaskArray, instantiate, validateInputapplyGlobalConfig, applyGlobalConfigToLayer, getLayerParams, getMemoryReport, getPreProcessorForInputType, getRegularizationByParam, getUpdaterByParam, initializer, initWeights, isPretrainParam, onesMaskForInput, paramReshapeOrder, setNInclone, initializeConstraints, resetLayerDefaultConfig, setDataTypeequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGradientNormalization, getGradientNormalizationThreshold, getLayerNamepublic IdentityLayer(String name)
public SDVariable defineLayer(SameDiff sameDiff, SDVariable layerInput)
SameDiffLambdaLayerdefineLayer in class SameDiffLambdaLayersameDiff - SameDiff instance to use to define the vertexlayerInput - Layer input variablepublic InputType getOutputType(int layerIndex, InputType inputType)
LayergetOutputType in class SameDiffLambdaLayerlayerIndex - Index of the layerinputType - Type of input for the layerCopyright © 2020. All rights reserved.