blob: 2aa0d64cb1383ffd98afc1fca2fa1960e4290963 [file] [log] [blame]
op {
graph_op_name: "CheckNumericsV2"
visibility: HIDDEN
attr {
name: "message"
description: <<END
Prefix of the error message.
END
}
summary: "Checks a tensor for NaN, -Inf and +Inf values."
description: <<END
When run, reports an `InvalidArgument` error if `tensor` has any values
that are not a number (NaN) or infinity (Inf). Otherwise, passes `tensor` as-is.
Unlike CheckNumerics (V1), CheckNumericsV2 distinguishes -Inf and +Inf in the
errors it throws.
END
}