Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Yaliang Wu <ylwu@amazon.com>
  • Loading branch information
ylwu-amzn committed Feb 17, 2023
1 parent 334cb77 commit 444228f
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,14 @@ public MLUploadInput(FunctionName functionName,
if (version == null) {
throw new IllegalArgumentException("model version is null");
}
//TODO: enable prebuilt model in 2.6
if (modelFormat == null) {
throw new IllegalArgumentException("model format is null");
}
if (url != null) {
if (modelFormat == null) {
throw new IllegalArgumentException("model format is null");
}
if (modelConfig == null) {
throw new IllegalArgumentException("model config is null");
}
}
if (modelFormat == null) {
throw new IllegalArgumentException("model format is null");
}
this.modelName = modelName;
this.version = version;
this.description = description;
Expand Down

0 comments on commit 444228f

Please sign in to comment.