public class KerasLambda extends KerasLayer
KerasLayer.DimOrderclassName, conf, dimOrder, dropout, inboundLayerNames, inputShape, kerasMajorVersion, layer, layerName, originalLayerConfig, outboundLayerNames, vertex, weightL1Regularization, weightL2Regularization, weights| Constructor and Description |
|---|
KerasLambda(Map<String,Object> layerConfig,
boolean enforceTrainingConfig,
SameDiffLayer sameDiffLayer)
Constructor from parsed Keras layer configuration dictionary.
|
KerasLambda(Map<String,Object> layerConfig,
SameDiffLayer sameDiffLayer)
Constructor from parsed Keras layer configuration dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
InputType |
getOutputType(InputType... inputType)
Get layer output type.
|
SameDiffLayer |
getSameDiffLayer()
Get DL4J SameDiffLayer.
|
clearCustomLayers, clearLambdaLayers, copyWeightsToLayer, getClassName, getDimOrder, getInboundLayerNames, getInputPreprocessor, getInputShape, getKerasMajorVersion, getLayer, getLayerName, getNInFromConfig, getNumParams, getVertex, getWeights, isInputPreProcessor, isLayer, isValidInboundLayer, isVertex, registerCustomLayer, registerLambdaLayer, setInboundLayerNames, setLayer, setWeights, usesRegularizationpublic KerasLambda(Map<String,Object> layerConfig, SameDiffLayer sameDiffLayer) throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
layerConfig - dictionary containing Keras layer configurationInvalidKerasConfigurationException - Invalid Keras configUnsupportedKerasConfigurationException - Unsupported Keras configpublic KerasLambda(Map<String,Object> layerConfig, boolean enforceTrainingConfig, SameDiffLayer sameDiffLayer) throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
layerConfig - dictionary containing Keras layer configurationenforceTrainingConfig - whether to enforce training-related configuration optionsInvalidKerasConfigurationException - Invalid Keras configUnsupportedKerasConfigurationException - Unsupported Keras configpublic InputType getOutputType(InputType... inputType) throws InvalidKerasConfigurationException
getOutputType in class KerasLayerinputType - Array of InputTypesInvalidKerasConfigurationException - Invalid Keras configpublic SameDiffLayer getSameDiffLayer()
Copyright © 2021. All rights reserved.