eazygrad.bce_loss¶ eazygrad.bce_loss(predicted: _Tensor, target: _Tensor) → _Tensor[source]¶ Compute binary cross-entropy loss from probabilities. Parameters: predicted (_Tensor) – Predicted probabilities. target (_Tensor) – Target tensor with the same shape as predicted. Returns: _Tensor – Scalar loss tensor. See also torch.nn.functional.binary_cross_entropy