pytorch-model-parallel icon indicating copy to clipboard operation
pytorch-model-parallel copied to clipboard

RuntimeError: Could not run 'aten::nonzero' with arguments from the 'SparseCUDA' backend. 'aten::nonzero' is only available for these backends: [CPU, CUDA, Autograd, Profiler, Tracer].

Open derronqi opened this issue 4 years ago • 0 comments

pytorch1.6: cuda10.2 titan rtx * 4

output = self.am_branches[i](x.cuda(i), labels[i])

File "/home/derron/anaconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 722, in _call_impl result = self.forward(*input, **kwargs) File "/home/derron/arcface-pytorch/head/metrics_parallel.py", line 102, in forward output[index] = phi[index] RuntimeError: Could not run 'aten::nonzero' with arguments from the 'SparseCUDA' backend. 'aten::nonzero' is only available for these backends: [CPU, CUDA, Autograd, Profiler, Tracer].

derronqi avatar Oct 26 '20 12:10 derronqi