public void Load(Stream stream)
        {
            m_attentionLayer.Load(stream);
            foreach (LSTMAttentionDecoderCell item in m_decoders)
            {
                item.Load(stream);
            }

            m_decoderFFLayer.Load(stream);
        }
        public void Load(Stream stream)
        {
            Q.Load(stream);
            K.Load(stream);
            V.Load(stream);

            W0.Load(stream);
            b0.Load(stream);

            layerNorm1.Load(stream);
            layerNorm2.Load(stream);
            feedForwardLayer1.Load(stream);
            feedForwardLayer2.Load(stream);
        }
        public void Load(Stream stream)
        {
            foreach (MultiHeadAttention item in m_selfAttns)
            {
                item.Load(stream);
            }

            foreach (MultiHeadAttention item in m_encAttns)
            {
                item.Load(stream);
            }

            foreach (var item in m_posFFNs)
            {
                item.Load(stream);
            }

            layerNorm.Load(stream);
            m_decoderFFLayer.Load(stream);
        }
Exemple #4
0
 public void Load(Stream stream)
 {
     layerNorm2.Load(stream);
     feedForwardLayer1.Load(stream);
     feedForwardLayer2.Load(stream);
 }