-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
get_model_status.proto
68 lines (54 loc) · 2.15 KB
/
get_model_status.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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
[json_name = "model_version_status"];
}