1/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7    http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15
16#ifndef TENSORFLOW_CC_SAVED_MODEL_SIGNATURE_CONSTANTS_H_
17#define TENSORFLOW_CC_SAVED_MODEL_SIGNATURE_CONSTANTS_H_
18
19namespace tensorflow {
20
21/// Key in the signature def map for `default` serving signatures. The default
22/// signature is used in inference requests where a specific signature was not
23/// specified.
24static constexpr char kDefaultServingSignatureDefKey[] = "serving_default";
25
26////////////////////////////////////////////////////////////////////////////////
27/// Classification API constants.
28
29/// Classification inputs.
30static constexpr char kClassifyInputs[] = "inputs";
31
32/// Classification method name used in a SignatureDef.
33static constexpr char kClassifyMethodName[] = "tensorflow/serving/classify";
34
35/// Classification classes output.
36static constexpr char kClassifyOutputClasses[] = "classes";
37
38/// Classification scores output.
39static constexpr char kClassifyOutputScores[] = "scores";
40
41////////////////////////////////////////////////////////////////////////////////
42/// Predict API constants.
43
44/// Predict inputs.
45static constexpr char kPredictInputs[] = "inputs";
46
47/// Predict method name used in a SignatureDef.
48static constexpr char kPredictMethodName[] = "tensorflow/serving/predict";
49
50/// Predict outputs.
51static constexpr char kPredictOutputs[] = "outputs";
52
53////////////////////////////////////////////////////////////////////////////////
54/// Regression API constants.
55
56/// Regression inputs.
57static constexpr char kRegressInputs[] = "inputs";
58
59/// Regression method name used in a SignatureDef.
60static constexpr char kRegressMethodName[] = "tensorflow/serving/regress";
61
62/// Regression outputs.
63static constexpr char kRegressOutputs[] = "outputs";
64
65////////////////////////////////////////////////////////////////////////////////
66
67}  // namespace tensorflow
68
69#endif  // TENSORFLOW_CC_SAVED_MODEL_SIGNATURE_CONSTANTS_H_
70