RetroPrime
RetroPrime copied to clipboard
运行 run_example.sh时,会出现RuntimeError: "index_select_out_cuda_impl" not implemented for 'Float'
Products to Synthons
0%| | 0/1 [00:00<?, ?it/s]/home/lzf/software/anaconda3/envs/seq_gr/lib/python3.7/site-packages/torchtext/data/field.py:359: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
var = torch.tensor(arr, dtype=self.dtype, device=device)
/home/lzf/programme/Retroprime/RetroPrime/retroprime/transformer_model/onmt/translate/translator.py:613: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
return torch.tensor(a, requires_grad=False)
0%| | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
File "retroprime/transformer_model/translate.py", line 53, in
请问你这个问题后来解决了吗?
This error may be caused by using an unsupported CUDA operation. Possible solutions are to make sure that your version of CUDA is compatible with the version of PyTorch you are using, and to check for other dependencies or configuration issues.