Core Layers
DL4J equivalents and API reference for Keras core layers — Dense, Flatten, Dropout, Reshape, Merge, Permute, and more.
Last updated
Was this helpful?
Was this helpful?
public KerasPermute(Map<String, Object> layerConfig)
throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationExceptionpublic boolean isInputPreProcessor()public InputPreProcessor getInputPreprocessor(InputType... inputType)
throws InvalidKerasConfigurationExceptionpublic InputType getOutputType(InputType... inputType) throws InvalidKerasConfigurationExceptionpublic KerasFlatten(Map<String, Object> layerConfig)
throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationExceptionpublic boolean isInputPreProcessor()public InputPreProcessor getInputPreprocessor(InputType... inputType)
throws InvalidKerasConfigurationExceptionpublic InputType getOutputType(InputType... inputType) throws InvalidKerasConfigurationExceptionpublic KerasReshape(Map<String, Object> layerConfig)
throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationExceptionpublic KerasMerge(Integer kerasVersion) throws UnsupportedKerasConfigurationExceptionpublic InputType getOutputType(InputType... inputType)public KerasDense(Map<String, Object> layerConfig)
throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationExceptionpublic DenseLayer getDenseLayer()public InputType getOutputType(InputType... inputType) throws InvalidKerasConfigurationExceptionpublic int getNumParams()public void setWeights(Map<String, INDArray> weights) throws InvalidKerasConfigurationExceptionpublic KerasDropout(Map<String, Object> layerConfig)
throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationExceptionpublic DropoutLayer getDropoutLayer()public InputType getOutputType(InputType... inputType) throws InvalidKerasConfigurationException