On this page
tf.estimator.export.ServingInputReceiver
A return type for a serving_input_receiver_fn.
tf.estimator.export.ServingInputReceiver(
    features, receiver_tensors, receiver_tensors_alternatives=None
)
| Attributes | |
|---|---|
| features | A Tensor,SparseTensor, or dict of string or int toTensororSparseTensor, specifying the features to be passed to the model. Note: iffeaturespassed is not a dict, it will be wrapped in a dict with a single entry, using 'feature' as the key. Consequently, the model must accept a feature dict of the form {'feature': tensor}. You may useTensorServingInputReceiverif you want the tensor to be passed as is. | 
| receiver_tensors | A Tensor,SparseTensor, or dict of string toTensororSparseTensor, specifying input nodes where this receiver expects to be fed by default. Typically, this is a single placeholder expecting serializedtf.Exampleprotos. | 
| receiver_tensors_alternatives | a dict of string to additional groups of receiver tensors, each of which may be a Tensor,SparseTensor, or dict of string toTensororSparseTensor. These named receiver tensor alternatives generate additional serving signatures, which may be used to feed inputs at different points within the input receiver subgraph. A typical usage is to allow feeding raw featureTensors downstream of the tf.parse_example() op. Defaults to None. | 
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
 https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/estimator/export/ServingInputReceiver