apply

abstract fun apply(tf: Ops, yPred: Operand<Float>, yTrue: Operand<Float>, numberOfLabels: Operand<Float>?): Operand<Float>

Applies Metric to the yPred labels predicted by the model and known yTrue hidden during training.

Parameters

yPred

The predicted values. shape = [batch_size, d0, .. dN].

yTrue

Ground truth values. Shape = [batch_size, d0, .. dN].

tf

TensorFlow graph API for building operations.