Skip to content

Commit

Permalink
small change missed from new specs
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Nov 12, 2024
1 parent 6767969 commit 7070a45
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ public static ModelWeight build(Map<String, Object> yamlFieldElements)
model.weightsDic = new HashMap<String, WeightFormat>();
for (String ww : weightsFormats) {
Map<String, Object> weights = (Map<String, Object>) yamlFieldElements.get(ww);
if (weights == null)
continue;
if (ww.contentEquals(kerasIdentifier)) {
KerasWeights weightsObject = new KerasWeights(weights);
model.weightsDic.put(model.kerasEngineName(weightsObject), weightsObject);
Expand Down

0 comments on commit 7070a45

Please sign in to comment.