TensorFlow Serving C++ API Documentation
get_model_status_impl.h
1 /* Copyright 2018 Google Inc. All Rights Reserved.
2 
3 Licensed under the Apache License, Version 2.0 (the "License");
4 you may not use this file except in compliance with the License.
5 You may obtain a copy of the License at
6 
7  http://www.apache.org/licenses/LICENSE-2.0
8 
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14 ==============================================================================*/
15 
16 #ifndef TENSORFLOW_SERVING_MODEL_SERVERS_GET_MODEL_STATUS_IMPL_H_
17 #define TENSORFLOW_SERVING_MODEL_SERVERS_GET_MODEL_STATUS_IMPL_H_
18 
19 #include "tensorflow/core/lib/core/status.h"
20 #include "tensorflow_serving/apis/get_model_status.pb.h"
21 #include "tensorflow_serving/model_servers/server_core.h"
22 
23 namespace tensorflow {
24 namespace serving {
25 
26 // Returns response with status information for model. If the request
27 // specifies a model version, information about only that version will be
28 // returned. If no version is specified, information about all versions of the
29 // model will be returned.
31  public:
32  static Status GetModelStatus(ServerCore* core,
33  const GetModelStatusRequest& request,
34  GetModelStatusResponse* response);
35 
36  // Like GetModelStatus(), but uses 'model_spec' instead of the one embedded in
37  // 'request'.
38  static Status GetModelStatusWithModelSpec(
39  ServerCore* core, const ModelSpec& model_spec,
40  const GetModelStatusRequest& request, GetModelStatusResponse* response);
41 };
42 
43 } // namespace serving
44 } // namespace tensorflow
45 
46 #endif // TENSORFLOW_SERVING_MODEL_SERVERS_GET_MODEL_STATUS_IMPL_H_