protected LayeredNet(LayeredNet <T> other, int batchSize, int seqLength) { BatchSize = batchSize; SeqLen = seqLength; LayersList = other.LayersList.Select(x => x.Clone()).ToList(); foreach (var layer in LayersList) { layer.Initialize(batchSize, seqLength); } }
protected LayeredNet(LayeredNet <T> other) { BatchSize = other.BatchSize; SeqLen = other.SeqLen; LayersList = other.LayersList.Select(x => x.Clone()).ToList(); }