Git Product home page Git Product logo

Comments (13)

CheriseZhu avatar CheriseZhu commented on July 18, 2024

The 'RelationConv' is implemented in the fold ./torch_geometric/nn/conv, and 'Entities' can be imported from torch_geometric/dataset. Not from the original package.

from rshn.

empty-id avatar empty-id commented on July 18, 2024

Yeah, I see the code. But I am still confused about how to modify the code to make it run?

from rshn.

CheriseZhu avatar CheriseZhu commented on July 18, 2024

You can specify the import from the local package.

from rshn.

empty-id avatar empty-id commented on July 18, 2024

Yes, I tried to import from local. But failed. I also tried to google "how to import from local" but no available knowledge. Forgive my ignorance. [sad]

from rshn.

CheriseZhu avatar CheriseZhu commented on July 18, 2024

Maybe you could try PyCharm to deploy the code, which is friendly to you to make it run.

from rshn.

empty-id avatar empty-id commented on July 18, 2024

Ah... It is a weird requirement... So is there no way to run it just in terminal? (What if I run code on a Linux server?)

from rshn.

CheriseZhu avatar CheriseZhu commented on July 18, 2024

Of course the code is running on Linux server, through configuring an interpreter using SSH.

from rshn.

empty-id avatar empty-id commented on July 18, 2024

Yes, I use PyCharm now and it seems better. But there is still one problem: Could you specify the version of torch_sparse because now the code raises this error:

    out = spmm(edge_index, alpha, x.size(0), x)
TypeError: spmm() missing 1 required positional argument: 'matrix'

I think it's due to the version of torch_sparse mismatching.

If you could provide the version of the following four packages, it's better:

pip install torch-scatter
pip install torch-sparse
pip install torch-cluster
pip install torch-spline-conv

from rshn.

CheriseZhu avatar CheriseZhu commented on July 18, 2024

torch-scatter == 1.3.0
torch-sparse == 0.4.0
torch-cluster == 1.4.2
torch-spline-conv == 1.0.4

from rshn.

empty-id avatar empty-id commented on July 18, 2024

Apologize for disturbing you again. Which version of CUDA are you using? I use the default cuda9.0 for pytorch 1.1. But I fail to install torch-sparse==0.4.0.

from rshn.

empty-id avatar empty-id commented on July 18, 2024

Hi I made some modification and a pull request. Now the code can run with the latest version of torch-scatter and torch-sparse. (with torch 1.4.0 and cuda 10.1)

Maybe it's not necessary to merge my request, just provide for others' convenience.

from rshn.

empty-id avatar empty-id commented on July 18, 2024

BTW, two lines of code can be added to the head of RSHN.py get away with the necessity of PyCharm:

import sys
sys.path.insert(0, '../')

from rshn.

CheriseZhu avatar CheriseZhu commented on July 18, 2024

Thanks for the improvement, and I will consider the modification with the latest version.

from rshn.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.