Giter Site home page Giter Site logo

[DISCUSSION] Subgraph semantics about dgl HOT 4 CLOSED

dmlc avatar dmlc commented on August 15, 2024 1
[DISCUSSION] Subgraph semantics

from dgl.

Comments (4)

zheng-da avatar zheng-da commented on August 15, 2024

After thinking more about subgraph training, I don't feel that we need to support the "shared" mode for subgraph training. After the forward computation in a mini-batch, we don't need to write data back to the parent frame directly. Users should explicitly write data back with "inplace=True" to avoid index_copy. In addition, does any underlying framework support non-contiguous view on a tensor?

from dgl.

jermainewang avatar jermainewang commented on August 15, 2024

I think it's still good to have for completeness, but you could put it in a lower priority and may not finish it in one PR. I agree that we need an "inplace=True" flag when writing back. I don't think current framework support such view. That's why we have FrameRef for that.

from dgl.

zheng-da avatar zheng-da commented on August 15, 2024

OK. let's postpone the implementation of the "shared" mode until we find a real application for this.

from dgl.

jermainewang avatar jermainewang commented on August 15, 2024

The basic "non-shared" mode has been done in #90. We are now focusing on performance issue.

from dgl.

Related Issues (20)

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.