std1.0.0-beta-7 SafeC docs

std :: ml::nn

Function std::tensor_bce_logits_loss

#include <std/ml/nn.h> source ยท definition

&FloatTensor tensor_bce_logits_loss(const &FloatTensor logits, const &FloatTensor target)

Binary cross-entropy of sigmoid(logits) against targets in [0, 1], computed from the logits so it never takes log(0). Gradient to logits only.