Rate this Page

Template Function at::symint::embedding(const at::Tensor&, const at::Tensor&, int64_t, bool, bool)#

Function Documentation#

template<typename T, typename = std::enable_if_t<std::is_same_v<T, int64_t>>>
at::Tensor at::symint::embedding(const at::Tensor &weight, const at::Tensor &indices, int64_t padding_idx = -1, bool scale_grad_by_freq = false, bool sparse = false)#