public abstract class SameDiffLambdaLayer extends SameDiffLayer
SameDiffLayer.Builder<T extends SameDiffLayer.Builder<T>>
weightInit
biasUpdater, gradientNormalization, gradientNormalizationThreshold, l1, l1Bias, l2, l2Bias, updater
constraints, iDropout, layerName
Constructor and Description |
---|
SameDiffLambdaLayer() |
Modifier and Type | Method and Description |
---|---|
abstract SDVariable |
defineLayer(SameDiff sameDiff,
SDVariable layerInput) |
SDVariable |
defineLayer(SameDiff sameDiff,
SDVariable layerInput,
Map<String,SDVariable> paramTable)
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
|
instantiate
applyGlobalConfig, applyGlobalConfigToLayer, getL1ByParam, getL2ByParam, getLayerParams, getMemoryReport, getPreProcessorForInputType, getUpdaterByParam, initializer, initWeights, isPretrain, isPretrainParam, paramReshapeOrder, setNIn
clone, initializeConstraints, resetLayerDefaultConfig, setPretrain
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGradientNormalization, getGradientNormalizationThreshold, getLayerName
public abstract SDVariable defineLayer(SameDiff sameDiff, SDVariable layerInput)
public SDVariable defineLayer(SameDiff sameDiff, SDVariable layerInput, Map<String,SDVariable> paramTable)
SameDiffLayer
defineLayer
in class SameDiffLayer
sameDiff
- SameDiff instancelayerInput
- Input to the layerparamTable
- Parameter table - keys as defined by AbstractSameDiffLayer.defineParameters(SDLayerParams)
public InputType getOutputType(int layerIndex, InputType inputType)
Layer
getOutputType
in class Layer
layerIndex
- Index of the layerinputType
- Type of input for the layerpublic void defineParameters(SDLayerParams params)
AbstractSameDiffLayer
SDLayerParams.addWeightParam(String, long...)
and
SDLayerParams.addBiasParam(String, long...)
defineParameters
in class AbstractSameDiffLayer
params
- Object used to set parameters for this layerpublic void initializeParameters(Map<String,INDArray> params)
AbstractSameDiffLayer
initializeParameters
in class AbstractSameDiffLayer
params
- Parameter arrays that may be initializedCopyright © 2018. All rights reserved.