You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current code was prepared using single GPU. The use of multi-GPU can cause problems.
and the error is:
File "./models/MetaEmbeddingClassifier.py", line 48, in forward
memory_feature = torch.matmul(values_memory, keys_memory)
RuntimeError: size mismatch, m1: [16 x 7], m2: [4 x 512] at /pytorch/aten/src/THC/generic/THCTensorMathBlas.cu:268
# for 2 GPUs:
torch.Size([16, 7])
torch.Size([3, 512])
torch.Size([16, 7])
torch.Size([4, 512])
# for 1 GPU:
torch.Size([32, 7])
torch.Size([7, 512])
Is there any idea to support Multiple-GPU?
The text was updated successfully, but these errors were encountered:
Hello @BIGBALLON thank you very much for asking. We are very sorry that the current code does not support multi gpu. And the error you reported is the reason. You are very welcome to modify the code and make it working for multi-gpus.
@liuziwei7 @zhmiao thanks for your amazing work, from the CAUTION
and the error is:
Is there any idea to support Multiple-GPU?
The text was updated successfully, but these errors were encountered: