Skip to content

Commit

Permalink
Adding in grpc code
Browse files Browse the repository at this point in the history
  • Loading branch information
nv-braf committed Feb 20, 2024
1 parent ee06d39 commit 68aa75f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions model_analyzer/triton/client/grpc_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,9 @@ def get_model_repository_index(self):
Returns the JSON dict holding the model repository index.
"""
return self._client.get_model_repository_index(as_json=True)["models"]

def is_model_ready(self, model_name: str) -> bool:
"""
Returns true if the model is loaded on the server
"""
return self._client.is_model_ready(model_name)
4 changes: 1 addition & 3 deletions model_analyzer/triton/client/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,4 @@ def is_model_ready(self, model_name: str) -> bool:
"""
Returns true if the model is loaded on the server
"""
foo = self._client.is_model_ready(model_name)

return foo
return self._client.is_model_ready(model_name)

0 comments on commit 68aa75f

Please sign in to comment.