Const slice of the internal weights representation.
//save slice auto weights = optimizer.weights; //use `.dup` or copy to save current weights //1: .dup auto weightsSave1 = weights.dup; //2: create array auto weightsSave2 = new double[weights.length]; //2: copy weightsSave2[] = weights[];