Template Function at::symint::cross_entropy_loss(const at::Tensor&, const at::Tensor&, const ::std::optional<at::Tensor>&, int64_t, int64_t, double)¶
Defined in File Functions.h
Function Documentation¶
-
template<typename T, typename = std::enable_if_t<std::is_same_v<T, int64_t>>>
at::Tensor at::symint::cross_entropy_loss(const at::Tensor &self, const at::Tensor &target, const ::std::optional<at::Tensor> &weight = {}, int64_t reduction = at::Reduction::Mean, int64_t ignore_index = -100, double label_smoothing = 0.0)¶