public BiGRU(int xSize, int hSize, int ySize, int batchSize, int seqLen) { forward = new LayeredNet <T>(batchSize, seqLen, new GruLayer <T>(xSize, hSize)); backward = new LayeredNet <T>(batchSize, seqLen, new GruLayer <T>(xSize, hSize)); outNet = new LayeredNet <T>(batchSize, seqLen, new GruLayer <T>(hSize * 2, hSize), new LinearLayer <T>(hSize, ySize)); }
public BiGRU(BiGRU <T> other) { forward = other.forward.Clone(); backward = other.backward.Clone(); outNet = other.outNet.Clone(); }
protected NeuralNet(NeuralNet <T> other) { Optimizer = other.Optimizer.Clone(); }