Skip to content

Commit

Permalink
[serving] Remove unused setLoadOnDevice() (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu committed Dec 6, 2022
1 parent f883a83 commit 8582d9d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions serving/src/main/java/ai/djl/serving/util/ConfigManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -280,15 +280,6 @@ public String getLoadOnDevices() {
return prop.getProperty(LOAD_ON_DEVICES, "*");
}

/**
* Sets the devices the model will be loaded on.
*
* @param loadOnDevices the devices to load the model on
*/
public void setLoadOnDevices(String loadOnDevices) {
prop.setProperty(LOAD_ON_DEVICES, loadOnDevices);
}

/**
* Returns the CORS allowed origin setting.
*
Expand Down
2 changes: 1 addition & 1 deletion serving/src/test/resources/config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
inference_address=https://127.0.0.1:8443
management_address=https://127.0.0.1:8443
model_store=build/models
load_models=https://resources.djl.ai/test-models/mlp.tar.gz,[mlp:v1:MXNet:*]=https://resources.djl.ai/test-models/mlp.tar.gz
load_models=https://resources.djl.ai/test-models/mlp.tar.gz,mlp:v1:MXNet=https://resources.djl.ai/test-models/mlp.tar.gz
private_key_file=src/test/resources/key.pem
certificate_file=src/test/resources/certs.pem
max_request_size=10485760

0 comments on commit 8582d9d

Please sign in to comment.