griegler/octnet

Bad Argument to octree_resize_gpu

Tetragramm opened this issue · 0 comments

After calling
input, target = data_loader:getBatch()
I am trying to resize the input variable.

    local inputSz = input:size()
    inputSz[1] = inputSz[1]*2
    input:resize(inputSz)

The resulting error is this:

/home/master/torch/distro/install/bin/luajit: /home/master/octnet/th/oc/octree.lua:472: bad argument #1 to 'octree_resize_gpu' (cannot convert 'void *' to 'int')
stack traceback:
        [C]: in function 'octree_resize_gpu'
        /home/master/octnet/th/oc/octree.lua:472: in function 'resize'

From what I can see in dataloader.lua, it seems like I'm using it correctly, so I'm not sure what the problem is.

Thanks