AttributeError: module ‘torch‘ has no attribute ‘sparse_csc‘

insert image description here


Problem Description:

While training a graph neural network, I encountered a problem, ie AttributeError: module 'torch' has no attribute 'sparse_csc'. I'm using PyTorchthe and torch-geometriclibraries. After investigation, I found that the source of this problem lies in the version compatibility of the library.

insert image description here

../../pytorch_geometric

Guess you like

Origin blog.csdn.net/m0_47256162/article/details/132182519