Method: Torch::NN::BCEWithLogitsLoss#forward
- Defined in:
- lib/torch/nn/bce_with_logits_loss.rb
#forward(input, target) ⇒ Object
10 11 12 |
# File 'lib/torch/nn/bce_with_logits_loss.rb', line 10 def forward(input, target) F.binary_cross_entropy_with_logits(input, target, weight: weight, pos_weight: pos_weight, reduction: @reduction) end |