tf.estimator.export.ServingInputReceiver

tf.estimator.export.ServingInputReceiver

class tf.estimator.export.ServingInputReceiver

Defined in tensorflow/python/estimator/export/export.py.

A return type for a serving_input_receiver_fn.

The expected return values are: features: A dict of string to Tensor or SparseTensor, specifying the features to be passed to the model. receiver_tensors: a Tensor, or a dict of string to Tensor, specifying input nodes where this receiver expects to be fed. Typically, this is a single placeholder expecting serialized tf.Example protos.

Properties

features

Alias for field number 0

receiver_tensors

Alias for field number 1

Methods

__new__

__new__(
    cls,
    features,
    receiver_tensors
)

© 2017 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/api_docs/python/tf/estimator/export/ServingInputReceiver

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部