tf.contrib.metrics.confusion_matrix

tf.contrib.metrics.confusion_matrix(
    labels,
    predictions,
    num_classes=None,
    dtype=tf.dtypes.int32,
    name=None,
    weights=None
)

Defined in tensorflow/contrib/metrics/python/ops/confusion_matrix_ops.py.

Deprecated. Use tf.confusion_matrix instead.