Shortcuts

Typedef torch::nn::functional::CosineEmbeddingLossFuncOptions

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));

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources