public abstract class SameDiffLambdaLayer extends SameDiffLayer
SameDiffLayer.Builder<T extends SameDiffLayer.Builder<T>>paramWeightInit, weightInitbiasUpdater, gradientNormalization, gradientNormalizationThreshold, regularization, regularizationBias, updaterconstraints, iDropout, layerName| Constructor and Description |
|---|
SameDiffLambdaLayer() |
| Modifier and Type | Method and Description |
|---|---|
abstract SDVariable |
defineLayer(SameDiff sameDiff,
SDVariable layerInput)
The defineLayer method is used to define the forward pass for the layer
|
SDVariable |
defineLayer(SameDiff sameDiff,
SDVariable layerInput,
Map<String,SDVariable> paramTable,
SDVariable mask)
Define the layer
|
void |
defineParameters(SDLayerParams params)
Define the parameters for the network.
|
InputType |
getOutputType(int layerIndex,
InputType inputType)
For a given type of input to this layer, what is the type of the output?
|
void |
initializeParameters(Map<String,INDArray> params)
Set the initial parameter values for this layer, if required
|
feedForwardMaskArray, 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 abstract SDVariable defineLayer(SameDiff sameDiff, SDVariable layerInput)
sameDiff - SameDiff instance to use to define the vertexlayerInput - Layer input variablepublic SDVariable defineLayer(SameDiff sameDiff, SDVariable layerInput, Map<String,SDVariable> paramTable, SDVariable mask)
SameDiffLayerdefineLayer in class SameDiffLayersameDiff - SameDiff instancelayerInput - Input to the layerparamTable - Parameter table - keys as defined by AbstractSameDiffLayer.defineParameters(SDLayerParams)mask - Optional, maybe null. Mask to apply if supportedpublic InputType getOutputType(int layerIndex, InputType inputType)
LayergetOutputType in class LayerlayerIndex - Index of the layerinputType - Type of input for the layerpublic void defineParameters(SDLayerParams params)
AbstractSameDiffLayerSDLayerParams.addWeightParam(String, long...) and SDLayerParams.addBiasParam(String, long...)defineParameters in class AbstractSameDiffLayerparams - Object used to set parameters for this layerpublic void initializeParameters(Map<String,INDArray> params)
AbstractSameDiffLayerinitializeParameters in class AbstractSameDiffLayerparams - Parameter arrays that may be initializedCopyright © 2022. All rights reserved.