Code Monkey home page Code Monkey logo

Comments (3)

rusty1s avatar rusty1s commented on June 7, 2024

I'm not sure why you think one needs sort a node's neighborhood. If I understand you correctly, you want to implement a SplineConv layer where B-spline weights models a Sobel-like kernel. You can do this by customizing the SplineConv.weight, which is a tensor of shape [num_spline_weights, in_channels, out_channels]. Therefore, for in_channels = out_channels = 1, that would be something like

conv.weight = torch.tensor([-1, 0, 1, -2, 0, 2, -1, 0, 1]).view(-1, 1, 1)

from pytorch_spline_conv.

saitta-s avatar saitta-s commented on June 7, 2024

Thanks for your prompt response. I tried what you suggested, but without the intended results.
My goal is to have a SplineConv layer that is given a feature on a graph and returns the feature's derivative along a specific spatial direction.
In a sense, this would be analogous to a finite difference scheme, but generalized to unstructured meshes. This is why I thought that one needs to sort each node's neighborhood (related paper).

Thanks again for the support.

from pytorch_spline_conv.

saitta-s avatar saitta-s commented on June 7, 2024

I managed to do what I wanted using RBFs. I eventually implemented a RBF-FD network from scratch, but your repo proved to be useful in the process.
Thanks for the support anyway.

from pytorch_spline_conv.

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.