Skip to content

Commit

Permalink
a quick fix to wholememory tensor gather default data type
Browse files Browse the repository at this point in the history
  • Loading branch information
linhu-nv committed May 27, 2024
1 parent 7352f1c commit 890943f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pylibwholegraph/pylibwholegraph/torch/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def gather(self,
embedding_count = indice.shape[0]
current_cuda_device = "cuda:%d" % (torch.cuda.current_device(),)
output_dtype = (
force_dtype if force_dtype is not None else self.embedding_tensor.dtype
force_dtype if force_dtype is not None else self.dtype
)
output_tensor = torch.empty(
[embedding_count, embedding_dim],
Expand Down

0 comments on commit 890943f

Please sign in to comment.