Represents the output of a supervised eval process.
Inherits From: ExportOutput
View aliases
Compat aliases for migration
See Migration guide for more details.
`tf.compat.v1.estimator.export.EvalOutput`
tf.estimator.export.EvalOutput(
loss=None, predictions=None, metrics=None
)
This class generates the appropriate signature def for exporting eval output by type-checking and wrapping loss, predictions, and metrics values.
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). |
Methods
as_signature_def
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.
|