Giter Site home page Giter Site logo

SpatialMaxPooling failure case about cunn HOT 6 CLOSED

soumith avatar soumith commented on June 2, 2024
SpatialMaxPooling failure case

from cunn.

Comments (6)

soumith avatar soumith commented on June 2, 2024

this is a case that comes in Overfeat (fast) type network.

from cunn.

soumith avatar soumith commented on June 2, 2024

looks like this line is the culprit:
https://github.com/torch/cunn/blob/master/SpatialMaxPooling.cu#L242

I ran on a 3.5 capable card (titan black), but it still refuses to run. The x-dim of the blocks in this case becomes: 131072.
From this page:
http://en.wikipedia.org/wiki/CUDA#Version_features_and_specifications
xdim for 3.0+ can be upto 2^31 -1.
Anyways, cudnn doesn't have this bug, i am unlikely to even look into fixing this.

from cunn.

jonathantompson avatar jonathantompson commented on June 2, 2024

Nice catch.

from cunn.

soumith avatar soumith commented on June 2, 2024

The reason here is that cunn is complied with 2.0 compability:

https://github.com/torch/cunn/blob/master/CMakeLists.txt#L19

If I switch that to 35, no problems

from cunn.

russellfei avatar russellfei commented on June 2, 2024

@soumith Same catch here.

a = torch.rand(64,1024,12,12):cuda()
b = nn.SpatialMaxPooling(2,2,2,2):cuda():forward(a)
-- or -- 
b = nn.SpatialAdaptiveMaxPooling(8,8):cuda():forward(a)

gives the invalid argument error.
Maybe I should switch that arch to 35.
Thanks for instructions above.

--- updates
It works!

from cunn.

bamos avatar bamos commented on June 2, 2024

Hi, I have the same issue with SpatialAveragePooling and changing the arch to 35 in CMakeLists fixes the problem.

from cunn.

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.