Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad Argument to octree_resize_gpu #13

Open
Tetragramm opened this issue Sep 29, 2017 · 0 comments
Open

Bad Argument to octree_resize_gpu #13

Tetragramm opened this issue Sep 29, 2017 · 0 comments

Comments

@Tetragramm
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant