Skip to content

Commit

Permalink
[api] Set arguments in serving.properties as model properties (#1853)
Browse files Browse the repository at this point in the history
Change-Id: I777e04d723afd0edf0dc7227ac6b6abf933a9d81
  • Loading branch information
frankfliu authored Aug 2, 2022
1 parent eb1197b commit f1ebbe8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/src/main/java/ai/djl/repository/zoo/BaseModelLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ protected Model createModel(
if (block != null) {
model.setBlock(block);
}
for (Map.Entry<String, Object> entry : arguments.entrySet()) {
model.setProperty(entry.getKey(), entry.getValue().toString());
}
return model;
}

Expand Down

0 comments on commit f1ebbe8

Please sign in to comment.