#if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION) #pragma once #include template struct NLLLossForwardParams { index_t n_classes; index_t map_size; index_t batch_stride; index_t class_stride; index_t ignore_index; index_t tid_offset; bool has_weight; }; template struct NLLLossBackwardParams { NLLLossForwardParams forward; bool is_reduction; bool is_mean; }; template struct CTCLossParams { index_t BLANK; index_t max_input_length; index_t max_target_length; index_t batch_size; index_t tg_target_stride; index_t log_probs_time_stride; index_t log_probs_batch_stride; index_t log_probs_token_stride; index_t log_alpha_batch_stride; index_t log_alpha_time_stride; index_t log_alpha_target_stride; }; template struct CTCLossBackwardCollectParams { index_t BLANK; index_t max_input_length; index_t max_target_length; index_t num_labels; index_t tg_target_stride; index_t log_probs_time_stride; index_t log_probs_batch_stride; index_t log_probs_token_stride; index_t log_alpha_beta_batch_stride; index_t log_alpha_beta_time_stride; index_t log_alpha_beta_target_stride; index_t grad_time_stride; index_t grad_batch_stride; index_t grad_token_stride; index_t grad_out_batch_stride; bool zero_infinity; }; #else #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined." #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)