コード例 #1
0
 public void Reset(IWeightFactory weightFactory)
 {
     ht = weightFactory.CreateWeights(batchSize, hdim, deviceId, true);
     ct = weightFactory.CreateWeights(batchSize, hdim, deviceId, true);
 }
コード例 #2
0
 public void Reset(IWeightFactory weightFactory)
 {
     Hidden = weightFactory.CreateWeights(m_batchSize, m_hdim, m_deviceId, true, name: $"{m_name}.{nameof(Hidden)}", isTrainable: true);
     Cell   = weightFactory.CreateWeights(m_batchSize, m_hdim, m_deviceId, true, name: $"{m_name}.{nameof(Cell)}", isTrainable: true);
 }