Giter Site home page Giter Site logo

VolumetricConvolution tests fail about cunn HOT 4 CLOSED

torch avatar torch commented on June 10, 2024
VolumetricConvolution tests fail

from cunn.

Comments (4)

soumith avatar soumith commented on June 10, 2024

does it fail EVERY time, or occasionally? I am not able to reproduce this on my machine (ugh!). Did you upgrade nn and cunn packages?

from cunn.

szagoruyko avatar szagoruyko commented on June 10, 2024

All tests fail in both Ubuntu and OS X, sure the packages are updated, nn.test() passes without errors. On OS X the error is different though:

th> nn.testcuda{'VolumetricConvolution_forward_single'}
Running 1 tests
*  ==> Done Completed 0 asserts in 1 tests with 1 errors
--------------------------------------------------------------------------------
VolumetricConvolution_forward_single
 Function call failed
/usr/local/share/lua/5.1/cunn/test.lua:2897: bad argument #1 (field finput does not exist)
stack traceback:
    [C]: in function 'forward'
    /usr/local/share/lua/5.1/cunn/test.lua:2897: in function </usr/local/share/lua/5.1/cunn/test.lua:2863>
    [C]: in function 'xpcall'
    /usr/local/share/lua/5.1/torch/Tester.lua:112: in function 'pcall'
    /usr/local/share/lua/5.1/torch/Tester.lua:169: in function 'run'
    /usr/local/share/lua/5.1/cunn/test.lua:3088: in function 'f'
    [string "local f = function() return nn.testcuda{'Volu..."]:1: in main chunk
    [C]: in function 'xpcall'
    /usr/local/share/lua/5.1/trepl/init.lua:553: in function </usr/local/share/lua/5.1/trepl/init.lua:489>

from cunn.

soumith avatar soumith commented on June 10, 2024

on OSX you clearly have an outdated nn package. I added the finput field in this recent commit:
torch/nn@2c6d601

On ubuntu, i reproduced your problem, i think it is a blas issue, looking into it.

from cunn.

soumith avatar soumith commented on June 10, 2024

ok fixed the issue via commit torch/nn@b071b6a

Turns out, inside an OpenMP for loop, doing something as simple as:

long j;
#pragma omp parallel for private(j)
for (j=0; j < 10; j++) {
    THTensor *inb = THTensor_(new)();
    THTensor_(free)(inb);
}

segfaults. not sure why, I tried to figure it out and debug with no luck. So disabled openmp for the volumetric batch looping (CPU)

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.