This class generates the appropriate signature def for exporting
eval output by type-checking and wrapping loss, predictions, and metrics
values.
Args
loss
dict of Tensors or single Tensor representing calculated loss.
predictions
dict of Tensors or single Tensor representing model
predictions.
metrics
Dict of metric results keyed by name.
The values of the dict can be one of the following:
(1) instance of Metric class.
(2) (metric_value, update_op) tuples, or a single tuple.
metric_value must be a Tensor, and update_op must be a Tensor or Op.
Raises
ValueError
if any of the outputs' dict keys are not strings or tuples of
strings or the values are not Tensors (or Operations in the case of
update_op).
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tf.estimator.export.EvalOutput\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/python/saved_model/model_utils/export_output.py#L415-L424) |\n\nRepresents the output of a supervised eval process. (deprecated)\n\nInherits From: [`ExportOutput`](../../../tf/estimator/export/ExportOutput)\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.EvalOutput\\`\n\n\u003cbr /\u003e\n\n tf.estimator.export.EvalOutput(\n loss=None, predictions=None, metrics=None\n )\n\n| **Deprecated:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.keras instead.\n\nThis class generates the appropriate signature def for exporting\neval output by type-checking and wrapping loss, predictions, and metrics\nvalues.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `loss` | dict of Tensors or single Tensor representing calculated loss. |\n| `predictions` | dict of Tensors or single Tensor representing model predictions. |\n| `metrics` | Dict of metric results keyed by name. The values of the dict can be one of the following: (1) instance of `Metric` class. (2) (metric_value, update_op) tuples, or a single tuple. metric_value must be a Tensor, and update_op must be a Tensor or Op. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| `ValueError` | if any of the outputs' dict keys are not strings or tuples of strings or the values are not Tensors (or Operations in the case of update_op). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|---------------|---------------|\n| `loss` | \u003cbr /\u003e \u003cbr /\u003e |\n| `metrics` | \u003cbr /\u003e \u003cbr /\u003e |\n| `predictions` | \u003cbr /\u003e \u003cbr /\u003e |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `as_signature_def`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/python/saved_model/model_utils/export_output.py#L397-L400) \n\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\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Class Variables --------------- ||\n|----------------------|-----------------|\n| LOSS_NAME | `'loss'` |\n| METRICS_NAME | `'metrics'` |\n| METRIC_UPDATE_SUFFIX | `'update_op'` |\n| METRIC_VALUE_SUFFIX | `'value'` |\n| PREDICTIONS_NAME | `'predictions'` |\n\n\u003cbr /\u003e"]]