pub struct CrossEntropyLoss { /* private fields */ }
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
The number of input needs by this op.
The number of output produced by this op.