Exemplo n.º 1
0
 /// <inheritdoc/>
 public Tensor[] LSTM(Tensor X, Tensor[] W, Tensor[] R, Tensor[] Wb, Tensor[] Rb, Tensor hidden, Tensor cell)
 {
     var O = m_Ops.LSTM(X, W, R, Wb, Rb, hidden, cell);
     LogLayerSummary($"X: {X.shape} hidden: {hidden.shape} cell: {cell.shape}");
     LogOutputTensorSummary(O[0], Prefix + nameof(IOps.LSTM));
     return O;
 }
Exemplo n.º 2
0
        /// <inheritdoc/>
        public Tensor[] LSTM(Tensor X, Tensor[] W, Tensor[] R, Tensor[] Wb, Tensor[] Rb, Tensor hidden, Tensor cell)
        {
            var O = m_Ops.LSTM(X, W, R, Wb, Rb, hidden, cell);

            // @TODO: not implemented
            return(O);
        }
        /// <inheritdoc/>
        public Tensor[] LSTM(Tensor X, Tensor[] W, Tensor[] R, Tensor[] Wb, Tensor[] Rb, Tensor hidden, Tensor cell)
        {
            var O = m_Ops.LSTM(X, W, R, Wb, Rb, hidden, cell);

            D.Log($"X: {X.shape} hidden: {hidden.shape} cell: {cell.shape}");
            O[0].PrintDataPart(32, Prefix + nameof(IOps.LSTM));
            return(O);
        }
Exemplo n.º 4
0
        /// <inheritdoc/>
        public Tensor[] LSTM(Tensor X, Tensor[] W, Tensor[] R, Tensor[] Wb, Tensor[] Rb, Tensor hidden, Tensor cell)
        {
            var O = m_Ops.LSTM(X, W, R, Wb, Rb, hidden, cell);

            // @TODO: not implemented
            m_Alu += 0;
            m_Mem += 0;
            RegisterLayerStats();
            return(O);
        }
Exemplo n.º 5
0
        /// <inheritdoc/>
        public Tensor[] LSTM(Tensor X, Tensor[] W, Tensor[] R, Tensor[] Wb, Tensor[] Rb, Tensor hidden, Tensor cell)
        {
            var Y = m_Ops1.LSTM(X, W, R, Wb, Rb, hidden, cell);
            var Z = m_Ops2.LSTM(X, W, R, Wb, Rb, hidden, cell);

            for (int i = 0; i < Y.Length; i++)
            {
                CheckSame(Y[i], Z[i], Layer.Type.LSTM);
            }

            return(Y);
        }