v2.4.1: fixed saves from prior to v2.4 not resetting generators
This commit is contained in:
@@ -893,8 +893,10 @@ public class Generator {
|
|||||||
|
|
||||||
if (bundle.contains(GENERAL_PROBS)){
|
if (bundle.contains(GENERAL_PROBS)){
|
||||||
float[] probs = bundle.getFloatArray(GENERAL_PROBS);
|
float[] probs = bundle.getFloatArray(GENERAL_PROBS);
|
||||||
for (int i = 0; i < probs.length; i++){
|
if (probs.length == Category.values().length) {
|
||||||
categoryProbs.put(Category.values()[i], probs[i]);
|
for (int i = 0; i < probs.length; i++) {
|
||||||
|
categoryProbs.put(Category.values()[i], probs[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user