public void Reset(IWeightFactory weightFactory) { ht = weightFactory.CreateWeights(batchSize, hdim, deviceId, true); ct = weightFactory.CreateWeights(batchSize, hdim, deviceId, true); }
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); }