pytorch_geometric: RuntimeError: CUDA error: invalid device function

❓ Questions & Help:

when i run

python geniepath.py

image package version failure or?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 22 (9 by maintainers)

Most upvoted comments

It seems that you need torch>=1.2.0. Alternatively, just re-write it to

data.y[mask].long().sum()

This is weird, and not related to torch-scatter.

import torch
torch.tensor([True, False, True]).sum()

works for me (PyTorch 1.3.0).