Skip to content

Commit 86a83cf

Browse files
martinwicketensorflower-gardener
authored andcommitted
Make more functions work as metric functions for MetricSpec.
Change: 147382300
1 parent a4281af commit 86a83cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tensorflow/contrib/learn/python/learn/metric_spec.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def _args(fn):
5353
_CANONICAL_LABELS_ARG = 'labels'
5454
_LABELS_ARGS = set((_CANONICAL_LABELS_ARG, 'label', 'targets', 'target'))
5555
_CANONICAL_PREDICTIONS_ARG = 'predictions'
56-
_PREDICTIONS_ARGS = set((_CANONICAL_PREDICTIONS_ARG, 'prediction'))
56+
_PREDICTIONS_ARGS = set((_CANONICAL_PREDICTIONS_ARG, 'prediction',
57+
'logits', 'logit'))
5758
_CANONICAL_WEIGHTS_ARG = 'weights'
5859
_WEIGHTS_ARGS = set((_CANONICAL_WEIGHTS_ARG, 'weight'))
5960

0 commit comments

Comments
 (0)