Class BaseRecurrentLayer<LayerConfT extends BaseRecurrentLayer>

    • Field Detail

      • stateMap

        protected Map<String,​INDArray> stateMap
        stateMap stores the INDArrays needed to do rnnTimeStep() forward pass.
      • tBpttStateMap

        protected Map<String,​INDArray> tBpttStateMap
        State map for use specifically in truncated BPTT training. Whereas stateMap contains the state from which forward pass is initialized, the tBpttStateMap contains the state at the end of the last truncated bptt
      • helperCountFail

        protected int helperCountFail
    • Method Detail

      • rnnClearPreviousState

        public void rnnClearPreviousState()
        Reset/clear the stateMap for rnnTimeStep() and tBpttStateMap for rnnActivateUsingStoredState()
        Specified by:
        rnnClearPreviousState in interface RecurrentLayer
      • rnnGetTBPTTState

        public Map<String,​INDArray> rnnGetTBPTTState()
        Description copied from interface: RecurrentLayer
        Get the RNN truncated backpropagations through time (TBPTT) state for the recurrent layer. The TBPTT state is used to store intermediate activations/state between updating parameters when doing TBPTT learning
        Specified by:
        rnnGetTBPTTState in interface RecurrentLayer
        Returns:
        State for the RNN layer
      • rnnSetTBPTTState

        public void rnnSetTBPTTState​(Map<String,​INDArray> state)
        Description copied from interface: RecurrentLayer
        Set the RNN truncated backpropagations through time (TBPTT) state for the recurrent layer. The TBPTT state is used to store intermediate activations/state between updating parameters when doing TBPTT learning
        Specified by:
        rnnSetTBPTTState in interface RecurrentLayer
        Parameters:
        state - TBPTT state to set
      • getDataFormat

        public RNNFormat getDataFormat()