Trying do make the backward to work
This commit is contained in:
Bausager committed 2026-08-04 21:05:20 +02:00
1 parent b52c128496
commit 28c1976fb1
6 files changed
+21 -97

No files matched your search

@@ -92,7 +92,7 @@ struct activation_softmax_loss_categorical_crossentropy: loss{
* @param y_true Vector of true label of data.
*
*/
bool forward(const panic::tensor::real_matrix& y_pred, const panic::tensor::uint_vector& y_true);
bool calculate(const panic::tensor::real_matrix& y_pred, const panic::tensor::uint_vector& y_true) override;
/**
* @brief forward function to calculate losses
@@ -103,7 +103,7 @@ struct activation_softmax_loss_categorical_crossentropy: loss{
* @Note Overloaded if one-shot endcoded
* is used.
*/
bool forward(const panic::tensor::real_matrix& y_pred, const panic::tensor::real_matrix& y_true);
bool calculate(const panic::tensor::real_matrix& y_pred, const panic::tensor::real_matrix& y_true) override;