Method: Torch::NN::BCELoss#initialize
- Defined in:
- lib/torch/nn/bce_loss.rb
#initialize(weight: nil, reduction: "mean") ⇒ BCELoss
Returns a new instance of BCELoss.
4 5 6 |
# File 'lib/torch/nn/bce_loss.rb', line 4 def initialize(weight: nil, reduction: "mean") super(weight, reduction) end |