6#ifndef DL_LEARNING_LOSS_HPP
7#define DL_LEARNING_LOSS_HPP
9#include "../tensor/math.hpp"
The Tensor is a managed pointer to a tensor. It can generally be thought of like an std::unique_ptr<T...
TensorPtr pow(TensorPtr base, float exponent) noexcept
Computes the exponent -th power of each element in base and returns the resulting tensor.
TensorPtr log(TensorPtr x) noexcept
Natural logarithm, .
TensorPtr mean(TensorPtr x) noexcept
Mean.
TensorPtr mse(TensorPtr x, TensorPtr y) noexcept
Mean Square Error.
TensorPtr bce(TensorPtr x, TensorPtr y) noexcept
Binary Cross Entropy Loss.