tenzr::nn::BCELoss¶
Callable wrapper around the binary cross-entropy loss.
#include <loss.h>
Public Functions¶
| Name | |
|---|---|
| BCELoss(double eps =1.0e-7, std::string reduction ="mean") | |
| Tensor | operator()(const Tensor & pred, const Tensor & target) const |
| Tensor | Forward(const Tensor & pred, const Tensor & target) const |
Public Functions Documentation¶
function BCELoss¶
function operator()¶
function Forward¶
Return: Same as operator().