Typedef torch::nn::functional::BinaryCrossEntropyFuncOptions¶
Defined in File loss.h
Typedef Documentation¶
-
using
torch::nn::functional
::
BinaryCrossEntropyFuncOptions
= BCELossOptions¶ Options for
torch::nn::functional::binary_cross_entropy
.See the documentation for
torch::nn::BCELossOptions
class to learn what arguments are supported.Example:
namespace F = torch::nn::functional; F::binary_cross_entropy(input, target, F::BinaryCrossEntropyFuncOptions().weight(weight));