Imports a 1D locally connected layer from Keras.

KerasLocallyConnected1D

Pass-through constructor from KerasLayer

  • throws UnsupportedKerasConfigurationException Unsupported Keras config
getLocallyConnected1DLayer

Constructor from parsed Keras layer configuration dictionary.

  • param layerConfig dictionary containing Keras layer configuration
  • throws InvalidKerasConfigurationException Invalid Keras config
  • throws UnsupportedKerasConfigurationException Unsupported Keras config
getOutputType
  • param inputType Array of InputTypes
  • return output type as InputType
  • throws InvalidKerasConfigurationException Invalid Keras config
setWeights

Set weights for 1D locally connected layer.

  • param weights Map from parameter name to INDArray.

KerasLocallyConnected2D

Imports a 2D locally connected layer from Keras.

KerasLocallyConnected2D
  • throws UnsupportedKerasConfigurationException Unsupported Keras config
getLocallyConnected2DLayer

Constructor from parsed Keras layer configuration dictionary.

  • param layerConfig dictionary containing Keras layer configuration
  • throws InvalidKerasConfigurationException Invalid Keras config
  • throws UnsupportedKerasConfigurationException Unsupported Keras config
getOutputType

Get layer output type.

  • param inputType Array of InputTypes
  • return output type as InputType
  • throws InvalidKerasConfigurationException Invalid Keras config
setWeights

Set weights for 2D locally connected layer.

  • param weights Map from parameter name to INDArray.