public final class CpuNdCrossEntropy
extends Object
Stable final-axis loss and FLOAT32 gradient, including strided/compact logits and response masks.
-
Method Summary
static float
loss(Tensor logits,
int[] targets,
boolean[] mask)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
-
loss
public static float loss(Tensor logits,
int[] targets,
boolean[] mask)