tf.estimator.export.ExportOutput
Stay organized with collections
Save and categorize content based on your preferences.
Represents an output of a model that can be served.
These typically correspond to model heads.
Methods
as_signature_def
View source
@abc.abstractmethod
as_signature_def(
receiver_tensors
)
Generate a SignatureDef proto for inclusion in a MetaGraphDef.
The SignatureDef will specify outputs as described in this ExportOutput,
and will use the provided receiver_tensors as inputs.
Args |
receiver_tensors
|
a Tensor , or a dict of string to Tensor , specifying
input nodes that will be fed.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.estimator.export.ExportOutput\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| [TensorFlow 1 version](/versions/r1.15/api_docs/python/tf/estimator/export/ExportOutput) | [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.0.0/tensorflow/python/saved_model/model_utils/export_output.py#L32-L99) |\n\nRepresents an output of a model that can be served.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.estimator.export.ExportOutput`](/api_docs/python/tf/estimator/export/ExportOutput)\n\n\u003cbr /\u003e\n\nThese typically correspond to model heads.\n\nMethods\n-------\n\n### `as_signature_def`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v2.0.0/tensorflow/python/saved_model/model_utils/export_output.py#L42-L53) \n\n @abc.abstractmethod\n as_signature_def(\n receiver_tensors\n )\n\nGenerate a SignatureDef proto for inclusion in a MetaGraphDef.\n\nThe SignatureDef will specify outputs as described in this ExportOutput,\nand will use the provided receiver_tensors as inputs.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ||\n|--------------------|---------------------------------------------------------------------------------------|\n| `receiver_tensors` | a `Tensor`, or a dict of string to `Tensor`, specifying input nodes that will be fed. |\n\n\u003cbr /\u003e"]]