[torchlib] _embedding_bag
#1021
Labels
module: torchlib
Related to the torch/aten function lib in development
_embedding_bag
#1021
We need to implement
_embedding_bag
for these two signatures following #909.func: embedding_bag.padding_idx(Tensor weight, Tensor indices, Tensor offsets, bool scale_grad_by_freq, int mode, bool sparse, Tensor? per_sample_weights, bool include_last_offset, int? padding_idx) -> (Tensor, Tensor, Tensor, Tensor)
func: _embedding_bag(Tensor weight, Tensor indices, Tensor offsets, bool scale_grad_by_freq=False, int mode=0, bool sparse=False, Tensor? per_sample_weights=None, bool include_last_offset=False, int padding_idx=-1) -> (Tensor, Tensor, Tensor, Tensor)
Notably we need to support
padding_idx=-1
.The text was updated successfully, but these errors were encountered: