Skip to content

Bad Argument to octree_resize_gpu #13

@Tetragramm

Description

@Tetragramm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions