ggml_cross_entropy_loss_back: Cross-Entropy Loss Backward (Graph)
Description
Gradient node for ggml_cross_entropy_loss.
Usage
ggml_cross_entropy_loss_back(ctx, a, b, c)
Value
Gradient w.r.t. the logits
Arguments
- ctx
GGML context
- a
Upstream gradient
- b
Logits from the forward pass
- c
Labels from the forward pass
Details
ggml_build_backward_expand() inserts this automatically, so it is
rarely needed directly; it is exposed for hand-built backward graphs.