How to delete a model details from custom model config file, which is used to load multiple models in tensorflow serving?
I have impemented the code to add the tensorflow models in runtime to the tensorflow serving config file using above thread : TensorFlow Serving: Update model_config (add additional models) at runtime
I have no clue how to delete any model from this config file using python as this config file has .conf extension and its in string format.
This config file looks like this :
model_config_list: {
config: {
name: "first",
base_path: "/models/first",
model_platform: "tensorflow",
}
},
config: {
name: "second",
base_path: "/models/second",
model_platform: "tensorflow",
}
}
Now how to delete the model named "first" from the above file during runtime using python code?
input :
model_config_list: {
config: {
name: "first",
base_path: "/models/first",
model_platform: "tensorflow",
}
}
config: {
name: "second",
base_path: "/models/second",
model_platform: "tensorflow",
}
}
some python code using grpc or google.protobuf, tensorflow_serving.apis, tensorflow_serving.config, to delete model named "first"
output :
model_config_list: {
config: {
name: "second",
base_path: "/models/second",
model_platform: "tensorflow",
}
}