maybe_check_numerics¶
-
tfsnippet.utils.maybe_check_numerics(tensor, message, name=None)¶ Check the numerics of tensor, if
should_check_numerics().Parameters: - tensor – The tensor to be checked.
- message – The message to display when numerical issues occur.
- name (str) – Default name of the name scope. If not specified, generate one according to the method name.
Returns: The tensor, whose numerics have been checked.
Return type: tf.Tensor