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