Compare commits

...

3 Commits

Author SHA1 Message Date
ibuki420 2e6bfc8de7
Merge 20889ae89c into 72eda9a24f 2023-07-25 11:18:57 +00:00
ibuki420 20889ae89c
Merge branch 'twitter:main' into main 2023-07-25 20:18:36 +09:00
v420v a672d8c520 Fix typo in comment 2023-04-01 10:47:40 +09:00
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ def get_multi_binary_class_metric_fn(metrics, classes=None, class_dim=1):
num_labels = shape[class_dim]
# If we are doing multi-class / multi-label metric, the number of classes / labels must
# be know at graph construction time. This dimension cannot have size None.
# be known at graph construction time. This dimension cannot have size None.
assert num_labels is not None, "The multi-metric dimension cannot be None."
assert classes is None or len(classes) == num_labels, (
"Number of classes must match the number of labels")