Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
a quick fix to wholememory tensor gather default data type (#173)
Browse files Browse the repository at this point in the history
A quick fixes to this issue (#168). Set correct default wholememory tensor gather results data type.

Authors:
  - https://github.com/linhu-nv

Approvers:
  - Chuang Zhu (https://github.com/chuangz0)

URL: #173
  • Loading branch information
linhu-nv authored May 28, 2024
1 parent 4ff5871 commit da0a412
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 da0a412

Please sign in to comment.