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

a quick fix to wholememory tensor gather default data type #173

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading