forked from tensorflow/serving
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
2,148 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
syntax = "proto3"; | ||
|
||
option cc_enable_arenas = true; | ||
|
||
import "tensorflow_serving/apis/model.proto"; | ||
import "tensorflow_serving/util/status.proto"; | ||
|
||
package tensorflow.serving; | ||
|
||
// GetModelStatusRequest contains a ModelSpec indicating the model for which | ||
// to get status. | ||
message GetModelStatusRequest { | ||
// Model Specification. If version is not specified, information about all | ||
// versions of the model will be returned. If a version is specified, the | ||
// status of only that version will be returned. | ||
ModelSpec model_spec = 1; | ||
} | ||
|
||
// Version number, state, and status for a single version of a model. | ||
message ModelVersionStatus { | ||
// Model version. | ||
int64 version = 1; | ||
|
||
// States that map to ManagerState enum in | ||
// tensorflow_serving/core/servable_state.h | ||
enum State { | ||
// Default value. | ||
UNKNOWN = 0; | ||
|
||
// The manager is tracking this servable, but has not initiated any action | ||
// pertaining to it. | ||
START = 10; | ||
|
||
// The manager has decided to load this servable. In particular, checks | ||
// around resource availability and other aspects have passed, and the | ||
// manager is about to invoke the loader's Load() method. | ||
LOADING = 20; | ||
|
||
// The manager has successfully loaded this servable and made it available | ||
// for serving (i.e. GetServableHandle(id) will succeed). To avoid races, | ||
// this state is not reported until *after* the servable is made | ||
// available. | ||
AVAILABLE = 30; | ||
|
||
// The manager has decided to make this servable unavailable, and unload | ||
// it. To avoid races, this state is reported *before* the servable is | ||
// made unavailable. | ||
UNLOADING = 40; | ||
|
||
// This servable has reached the end of its journey in the manager. Either | ||
// it loaded and ultimately unloaded successfully, or it hit an error at | ||
// some point in its lifecycle. | ||
END = 50; | ||
} | ||
|
||
// Model state. | ||
State state = 2; | ||
|
||
// Model status. | ||
StatusProto status = 3; | ||
} | ||
|
||
// Response for ModelStatusRequest on successful run. | ||
message GetModelStatusResponse { | ||
// Version number and status information for applicable model version(s). | ||
repeated ModelVersionStatus model_version_status = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
syntax = "proto3"; | ||
|
||
option cc_enable_arenas = true; | ||
|
||
import "tensorflow_serving/apis/get_model_status.proto"; | ||
|
||
package tensorflow.serving; | ||
|
||
// ModelService provides access to information about model versions | ||
// that have been handled by the model server. | ||
service ModelService { | ||
// Gets status of model. If the ModelSpec in the request does not specify | ||
// version, information about all versions of the model will be returned. If | ||
// the ModelSpec in the request does specify a version, the status of only | ||
// that version will be returned. | ||
rpc GetModelStatus(GetModelStatusRequest) returns (GetModelStatusResponse); | ||
} |
Oops, something went wrong.