Skip to content

Fix loss derivative

Olivier Antoni requested to merge oantoni/aidge_learning:Fix_loss_derivative into dev

Context

The derivative of the ReduceMean operator is not correct when computing the loss gradient for MSE and BCE loss.

Detailed major modifications

Replace target->dims()[0] by target->size() in the computation of the loss gradient.

Merge request reports

Loading