src/core/layer/recurrent/AbstractRecurrentLayer.java
public void forwardProcess() throws MatrixException, DynamicParamException {
        resetLayer();
        Sequence previousOutputs = getPreviousLayerOutputs();

        if (previousState != isTraining()) {
            procedure.reset(true);
            if ((previousState && restoreStateTraining) || ((!previousState && restoreStateTesting))) {
                procedure.storeDependencies(previousState ? 1 : 2);
            }
            if ((isTraining() && restoreStateTraining) || ((!isTraining() && restoreStateTesting))) {
                procedure.restoreDependencies(isTraining() ? 1 : 2);
            }
        }

        procedure.calculateExpression(previousOutputs, getLayerOutputs());

        previousState = isTraining();
    }
/**
     * Takes single forward processing step process layer input(s).<br>
     * Additionally applies any regularization defined for layer.<br>
     *
     * @throws MatrixException throws exception if matrix operation fails.
     * @throws DynamicParamException throws exception if parameter (params) setting fails.
     */
Takes single forward processing step process layer input(s).
Additionally applies any regularization defined for layer.

@throws MatrixException throws exception if matrix operation fails.
@throws DynamicParamException throws exception if parameter (params) setting fails.
Takes single forward processing step process layer input ( s ) . Additionally applies any regularization defined for layer . @throws MatrixException throws exception if matrix operation fails . @throws DynamicParamException throws exception if parameter ( params ) setting fails .
public void forwardProcess() throws MatrixException, DynamicParamException {
        resetLayer();
        Sequence previousOutputs = getPreviousLayerOutputs();
        if (previousState != isTraining()) {
            procedure.reset(true);
            if ((previousState && restoreStateTraining) || ((!previousState && restoreStateTesting))) {
                procedure.storeDependencies(previousState ? 1 : 2);
            }
            if ((isTraining() && restoreStateTraining) || ((!isTraining() && restoreStateTesting))) {
                procedure.restoreDependencies(isTraining() ? 1 : 2);
            }
        }
        procedure.calculateExpression(previousOutputs, getLayerOutputs());
        previousState = isTraining();
    }
public void forwardProcess ( ) throws MatrixException , DynamicParamException { resetLayer ( ) ; Sequence previousOutputs = getPreviousLayerOutputs ( ) ; if ( previousState != isTraining ( ) ) { procedure . reset ( true ) ; if ( ( previousState && restoreStateTraining ) || ( ( ! previousState && restoreStateTesting ) ) ) { procedure . storeDependencies ( previousState ? 1 : 2 ) ; } if ( ( isTraining ( ) && restoreStateTraining ) || ( ( ! isTraining ( ) && restoreStateTesting ) ) ) { procedure . restoreDependencies ( isTraining ( ) ? 1 : 2 ) ; } } procedure . calculateExpression ( previousOutputs , getLayerOutputs ( ) ) ; previousState = isTraining ( ) ; }
Takes single forward processing step process layer input(s).<br>
 Additionally applies any regularization defined for layer.<br>
Takes single forward processing step process layer input ( s ) . <br > Additionally applies any regularization defined for layer . <br >