pub struct CrossEntropyLoss {}
Implementations
Trait Implementations
The first is the prediction, the second input is the label ORDER IS IMPORTANT, SECOND ARGUMENT WON’T GET GRADEINT.
Given the forward input value and backward output_grad, Update weight gradient. return backward input gradeint.
access weight values