Example usage for org.deeplearning4j.nn.conf.inputs InputType recurrent

List of usage examples for org.deeplearning4j.nn.conf.inputs InputType recurrent

Introduction

In this page you can find the example usage for org.deeplearning4j.nn.conf.inputs InputType recurrent.

Prototype

public static InputType recurrent(long size) 

Source Link

Document

InputType for recurrent neural network (time series) data

Usage

From source file:org.ensor.fftmusings.mdn.MixtureDensityRNNOutputLayer.java

License:Apache License

@Override
public InputType getOutputType(int layerIndex, InputType inputType) {
    if (inputType == null || inputType.getType() != InputType.Type.RNN) {
        throw new IllegalStateException("Invalid input type for RnnOutputLayer (layer index = " + layerIndex
                + ", layer name=\"" + getLayerName() + "\"): Expected RNN input, got " + inputType);
    }/*w  ww  . ja  va 2  s.c om*/
    return InputType.recurrent(nOut);
}