GithubHelp home page GithubHelp logo

Comments (11)

awni avatar awni commented on July 17, 2024 2

Is anyone working on groups for convolution? E.g. @Stealeristaken ?

I am closing #637 as it's inactive but it might be useful as a starting point.

from mlx.

awni avatar awni commented on July 17, 2024 2

I don't think anyone is actively working on it, would be great to have you work on it @Rifur13 !

from mlx.

Stealeristaken avatar Stealeristaken commented on July 17, 2024 2

I'm eager to get this working as well. I can pick this up if no one is working on it.

feel free to take. gl!

from mlx.

dc-dc-dc avatar dc-dc-dc commented on July 17, 2024 1

Should the assert be removed and create a separate issue to improve Convolution speed on GPU when dilation is not 1? Creates more visibility to the core issue and opens the possibility of a contributor able to help out

from mlx.

a1eaiactaest avatar a1eaiactaest commented on July 17, 2024 1

agree with @dc-dc-dc, this would be really helpful for implementations that require dilation

from mlx.

Stealeristaken avatar Stealeristaken commented on July 17, 2024 1

Is anyone working on groups for convolution? E.g. @Stealeristaken ?

I am closing #637 as it's inactive but it might be useful as a starting point.

Been a bit busy these days. I tried adding groups to convs, but it didn't work very well. So, I closed that pull request. I'll try again in the next few days.

from mlx.

Rifur13 avatar Rifur13 commented on July 17, 2024 1

I'm eager to get this working as well. I can pick this up if no one is working on it.

from mlx.

dc-dc-dc avatar dc-dc-dc commented on July 17, 2024

@jagrit06 in conv2d op call, there is an assert to check if dilations is set to 1, but from a quick look through the implementation it seems to support dilations. I removed this check and messed with it a little comparing to pytorch and am seeing the same results with different values for dilations. Is there a specific case where dilations isn't supported?

from mlx.

jagrit06 avatar jagrit06 commented on July 17, 2024

Well at the moment the convolutions with dilations revert to a fairly naive and slow kernel on the GPU (though I think we do fine on the CPU)

That restriction was added to basically side step that performance hit

from mlx.

Jimexist avatar Jimexist commented on July 17, 2024

FWIW this PR now also depends on a groups param present.

from mlx.

a1eaiactaest avatar a1eaiactaest commented on July 17, 2024

Added dilation in #766

from mlx.

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.