TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-15

tensorplay.nn.functional.binary_cross_entropy_with_logits

tensorplay.nn.functional.binary_cross_entropy_with_logits(input: Tensor, target: Tensor, weight: Tensor | None = None, size_average=None, reduce=None, reduction: str = 'mean', pos_weight: Tensor | None = None) → Tensor[source]

Compute Binary Cross Entropy between target and input logits.

optionally rescaled by weight, then reduced. See BCEWithLogitsLoss for details.

On this page

Ask DeepWiki