You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: serving_basic.md
+30-29Lines changed: 30 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,35 +112,36 @@ You can add meta graph and variables to the builder using
112
112
As an example for how `predict_signature` is defined, the util takes the
113
113
following arguments:
114
114
115
-
*`inputs={'images': tensor_info_x}` specifies the input tensor info.
116
-
117
-
*`outputs={'scores': tensor_info_y}` specifies the scores tensor info.
118
-
119
-
Note that `tensor_info_x` and `tensor_info_y` have the structure of
120
-
`tensorflow::TensorInfo` protocol buffer defined [here](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/protobuf/meta_graph.proto).
121
-
To easily build tensor infos, the TensorFlow SavedModel API also provides
with [related TensorFlow 1.0 API documentation](https://www.tensorflow.org/api_docs/python/tf/saved_model/utils).
124
-
125
-
Also, note that `images` and `scores` are tensor alias names. They can be
126
-
whatever unique strings you want, and they will become the logical names
127
-
of tensor `x` and `y` that you refer to for tensor binding when sending
128
-
prediction requests later.
129
-
130
-
For instance, if `x` refers to the tensor with name 'long_tensor_name_foo'
131
-
and `y` refers to the tensor with name 'generated_tensor_name_bar',
132
-
`builder` will store tensor logical name to real name mapping
133
-
('images' -> 'long_tensor_name_foo') and ('scores' -> 'generated_tensor_name_bar').
134
-
This allows the user to refer to these tensors with their logical names
135
-
when running inference.
136
-
137
-
*`method_name` is the method used for the inference. For Prediction
138
-
requests, it should be set to `tensorflow/serving/predict`. For other
139
-
method names, see [signature_constants.py](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/saved_model/signature_constants.py)
140
-
and related [TensorFlow 1.0 API documentation](https://www.tensorflow.org/api_docs/python/tf/saved_model/signature_constants).
141
-
142
-
In addition to the description above, documentation related to signature def
143
-
structure and how to set up them up can be found [here](https://github.com/tensorflow/serving/blob/master/tensorflow_serving/g3doc/signature_defs.md).
115
+
*`inputs={'images': tensor_info_x}` specifies the input tensor info.
116
+
117
+
*`outputs={'scores': tensor_info_y}` specifies the scores tensor info.
118
+
119
+
*`method_name` is the method used for the inference. For Prediction
120
+
requests, it should be set to `tensorflow/serving/predict`. For other
121
+
method names, see [signature_constants.py](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/saved_model/signature_constants.py)
122
+
and related [TensorFlow 1.0 API documentation](https://www.tensorflow.org/api_docs/python/tf/saved_model/signature_constants).
123
+
124
+
125
+
Note that `tensor_info_x` and `tensor_info_y` have the structure of
126
+
`tensorflow::TensorInfo` protocol buffer defined [here](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/protobuf/meta_graph.proto).
127
+
To easily build tensor infos, the TensorFlow SavedModel API also provides
0 commit comments