public class KerasZeroPadding extends KerasLayer
KerasLayer.DimOrder
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LAYER_FIELD_PADDING |
className, DIM_ORDERING_TENSORFLOW, DIM_ORDERING_THEANO, dimOrder, dropout, inboundLayerNames, INIT_GLOROT_NORMAL, INIT_GLOROT_UNIFORM, INIT_HE_NORMAL, INIT_HE_UNIFORM, INIT_IDENTITY, INIT_LECUN_UNIFORM, INIT_NORMAL, INIT_ORTHOGONAL, INIT_UNIFORM, INIT_ZERO, inputShape, KERAS_ACTIVATION_HARD_SIGMOID, KERAS_ACTIVATION_LINEAR, KERAS_ACTIVATION_RELU, KERAS_ACTIVATION_SIGMOID, KERAS_ACTIVATION_SOFTMAX, KERAS_ACTIVATION_SOFTPLUS, KERAS_ACTIVATION_SOFTSIGN, KERAS_ACTIVATION_TANH, KERAS_LOSS_BINARY_CROSSENTROPY, KERAS_LOSS_CATEGORICAL_CROSSENTROPY, KERAS_LOSS_COSINE_PROXIMITY, KERAS_LOSS_HINGE, KERAS_LOSS_KLD, KERAS_LOSS_KULLBACK_LEIBLER_DIVERGENCE, KERAS_LOSS_MAE, KERAS_LOSS_MAPE, KERAS_LOSS_MEAN_ABSOLUTE_ERROR, KERAS_LOSS_MEAN_ABSOLUTE_PERCENTAGE_ERROR, KERAS_LOSS_MEAN_SQUARED_ERROR, KERAS_LOSS_MEAN_SQUARED_LOGARITHMIC_ERROR, KERAS_LOSS_MSE, KERAS_LOSS_MSLE, KERAS_LOSS_POISSON, KERAS_LOSS_SPARSE_CATEGORICAL_CROSSENTROPY, KERAS_LOSS_SQUARED_HINGE, layer, LAYER_BORDER_MODE_FULL, LAYER_BORDER_MODE_SAME, LAYER_BORDER_MODE_VALID, LAYER_CLASS_NAME_ACTIVATION, LAYER_CLASS_NAME_AVERAGE_POOLING_1D, LAYER_CLASS_NAME_AVERAGE_POOLING_2D, LAYER_CLASS_NAME_BATCHNORMALIZATION, LAYER_CLASS_NAME_CONVOLUTION_1D, LAYER_CLASS_NAME_CONVOLUTION_2D, LAYER_CLASS_NAME_DENSE, LAYER_CLASS_NAME_DROPOUT, LAYER_CLASS_NAME_EMBEDDING, LAYER_CLASS_NAME_FLATTEN, LAYER_CLASS_NAME_GLOBAL_AVERAGE_POOLING_1D, LAYER_CLASS_NAME_GLOBAL_AVERAGE_POOLING_2D, LAYER_CLASS_NAME_GLOBAL_MAX_POOLING_1D, LAYER_CLASS_NAME_GLOBAL_MAX_POOLING_2D, LAYER_CLASS_NAME_INPUT, LAYER_CLASS_NAME_LSTM, LAYER_CLASS_NAME_MAX_POOLING_1D, LAYER_CLASS_NAME_MAX_POOLING_2D, LAYER_CLASS_NAME_MERGE, LAYER_CLASS_NAME_TIME_DISTRIBUTED, LAYER_CLASS_NAME_TIME_DISTRIBUTED_DENSE, LAYER_CLASS_NAME_ZERO_PADDING_1D, LAYER_CLASS_NAME_ZERO_PADDING_2D, LAYER_FIELD_ACTIVATION, LAYER_FIELD_B_REGULARIZER, LAYER_FIELD_BATCH_INPUT_SHAPE, LAYER_FIELD_BORDER_MODE, LAYER_FIELD_CLASS_NAME, LAYER_FIELD_CONFIG, LAYER_FIELD_DIM_ORDERING, LAYER_FIELD_DROPOUT, LAYER_FIELD_DROPOUT_W, LAYER_FIELD_INBOUND_NODES, LAYER_FIELD_INIT, LAYER_FIELD_LAYER, LAYER_FIELD_NAME, LAYER_FIELD_NB_COL, LAYER_FIELD_NB_FILTER, LAYER_FIELD_NB_ROW, LAYER_FIELD_OUTPUT_DIM, LAYER_FIELD_POOL_SIZE, LAYER_FIELD_STRIDES, LAYER_FIELD_SUBSAMPLE, LAYER_FIELD_W_REGULARIZER, layerName, REGULARIZATION_TYPE_L1, REGULARIZATION_TYPE_L2, vertex, weightL1Regularization, weightL2Regularization, weights
Constructor and Description |
---|
KerasZeroPadding(java.util.Map<java.lang.String,java.lang.Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasZeroPadding(java.util.Map<java.lang.String,java.lang.Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
Modifier and Type | Method and Description |
---|---|
InputType |
getOutputType(InputType... inputType)
Get layer output type.
|
int[] |
getPaddingFromConfig(java.util.Map<java.lang.String,java.lang.Object> layerConfig)
Get zero padding from Keras layer configuration.
|
ZeroPaddingLayer |
getZeroPaddingLayer()
Get DL4J SubsamplingLayer.
|
checkForUnsupportedConfigurations, copyWeightsToLayer, getActivationFromConfig, getBiasL1RegularizationFromConfig, getClassName, getClassNameFromConfig, getConvolutionModeFromConfig, getDimOrder, getDropoutFromConfig, getInboundLayerNames, getInboundLayerNamesFromConfig, getInnerLayerConfigFromConfig, getInputPreprocessor, getInputShape, getKerasLayerFromConfig, getKerasLayerFromConfig, getKernelSizeFromConfig, getLayer, getLayerName, getLayerNameFromConfig, getNOutFromConfig, getNumParams, getPaddingFromBorderModeConfig, getStrideFromConfig, getTimeDistributedLayerConfig, getVertex, getWeightInitFromConfig, getWeightL1RegularizationFromConfig, getWeightL2RegularizationFromConfig, isInputPreProcessor, isLayer, isValidInboundLayer, isVertex, mapActivation, mapLossFunction, mapPoolingDimensions, mapPoolingType, mapWeightInitialization, setDimOrder, setInboundLayerNames, setWeights, usesRegularization
public static final java.lang.String LAYER_FIELD_PADDING
public KerasZeroPadding(java.util.Map<java.lang.String,java.lang.Object> layerConfig) throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
layerConfig
- dictionary containing Keras layer configuration.InvalidKerasConfigurationException
UnsupportedKerasConfigurationException
public KerasZeroPadding(java.util.Map<java.lang.String,java.lang.Object> layerConfig, boolean enforceTrainingConfig) throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
layerConfig
- dictionary containing Keras layer configurationenforceTrainingConfig
- whether to enforce training-related configuration optionsInvalidKerasConfigurationException
UnsupportedKerasConfigurationException
public ZeroPaddingLayer getZeroPaddingLayer()
public InputType getOutputType(InputType... inputType) throws InvalidKerasConfigurationException
getOutputType
in class KerasLayer
inputType
- Array of InputTypesInvalidKerasConfigurationException
public int[] getPaddingFromConfig(java.util.Map<java.lang.String,java.lang.Object> layerConfig) throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
layerConfig
- dictionary containing Keras layer configurationInvalidKerasConfigurationException
UnsupportedKerasConfigurationException