Typedef torch::nn::functional::CosineEmbeddingLossFuncOptions¶
Defined in File loss.h
Typedef Documentation¶
-
using torch::nn::functional::CosineEmbeddingLossFuncOptions = CosineEmbeddingLossOptions¶
Options for
torch::nn::functional::cosine_embedding_loss
.See the documentation for
torch::nn::CosineEmbeddingLossOptions
class to learn what arguments are supported.Example:
namespace F = torch::nn::functional; F::cosine_embedding_loss(input1, input2, target, F::CosineEmbeddingLossFuncOptions().margin(0.5));