pytorch BCEWithLogitsLoss equivalence #2651
Answered
by
laggui
wangjiawen2013
asked this question in
Q&A
-
Hi, |
Beta Was this translation helpful? Give feedback.
Answered by
laggui
Jan 2, 2025
Replies: 1 comment
-
Yep, you can use the let loss = BinaryCrossEntropyLossConfig::new().with_logits(true).init(&device); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
laggui
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yep, you can use the
BinaryCrossEntropyLoss
with logits: