Hi,
the code I execute uses SGD optimizer without momentum and embedding function from torch.nn.functional.
If I run the code below with sparse=True, I get following error: “AttributeError: ‘torch.sparse.FloatTensor’ object has no attribute ‘ge’”. If I pass sparse=False, everything works fine.
Code:
      embedded = embedding(inputs, self.weight,
                         max_norm=self.max_norm,
                         norm_type=self.norm_type,
                         scale_grad_by_freq=self.scale_grad_by_freq,
                         sparse=self.sparse)

Thanks,
Maksym