You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. in function is_label_valid (line 76 of utils.py), the following code is given:
def is_label_valid(labels):
"""Returns a boolean `Tensor` for label validity."""
labels = tf.convert_to_tensor(value=labels)
return tf.greater_equal(labels, 0.)
The result of this is an error if the target is an integer, because 0. is a float, and tf.greater_equal expects a both arguments to be of the same type. This prevents support for targets/labels that are integers.
The text was updated successfully, but these errors were encountered:
Hello. in function is_label_valid (line 76 of utils.py), the following code is given:
The result of this is an error if the target is an integer, because 0. is a float, and tf.greater_equal expects a both arguments to be of the same type. This prevents support for targets/labels that are integers.
The text was updated successfully, but these errors were encountered: