Rate this Page

Typedef torch::nn::functional::CTCLossFuncOptions#

Typedef Documentation#

using torch::nn::functional::CTCLossFuncOptions = CTCLossOptions#

Options for torch::nn::functional::ctc_loss.

See the documentation for torch::nn::CTCLossOptions class to learn what arguments are supported.

Example:

namespace F = torch::nn::functional;
F::ctc_loss(log_probs, targets, input_lengths, target_lengths,
F::CTCLossFuncOptions().reduction(torch::kNone));