Skip to content

bad argument #4 to '?' (cannot convert 'int *' to 'int') #11

Description

@SeekPoint

andy1028@andy1028-Envy:/media/andy1028/data1t/os_prj/github/BinaryNet$ th Main_BinaryNet_Cifar10.lua -network BinaryNet_Cifar10_Model
sh: 1: mk1ir: not found
Found Environment variable CUDNN_PATH = /home/andy1028/Downloads/cuda/lib64/libcudnn.so.5
0
14033566
14033566
14033566
[program started on Thu Oct 13 15:55:34 2016]
[command line arguments]
stcWeights false
LR 0.015625
modelsFolder ./Models/
batchSize 200
optimization adam
preProcDir /media/andy1028/data1t/os_prj/github/BinaryNet/PreProcData/Cifar10
network ./Models/BinaryNet_Cifar10_Model
stcNeurons true
constBatchSize false
LRDecay 0
whiten true
augment false
load
nGPU 1
dp_prepro false
format rgb
save /media/andy1028/data1t/os_prj/github/BinaryNet/Results/ThuOct1315:54:402016
dataset Cifar10
normalization simple
devid 1
visualize 1
type cuda
threads 8
SBN true
momentum 0
weightDecay 0
runningVal false
epoch -1
[----------------------]
==> Network
nn.Sequential {
input -> (1) -> (2) -> (3) -> (4) -> (5) -> (6) -> (7) -> (8) -> (9) -> (10) -> (11) -> (12) -> (13) -> (14) -> (15) -> (16) -> (17) -> (18) -> (19) -> (20) -> (21) -> (22) -> (23) -> (24) -> (25) -> (26) -> (27) -> (28) -> (29) -> (30) -> (31) -> (32) -> (33) -> (34) -> (35) -> (36) -> (37) -> (38) -> output: cudnnBinarySpatialConvolution(3 -> 128, 3x3, 1,1, 1,1)
(2): SpatialBatchNormalizationShiftPow2
(3): nn.HardTanh
(4): BinarizedNeurons
(5): cudnnBinarySpatialConvolution(128 -> 128, 3x3, 1,1, 1,1)
(6): cudnn.SpatialMaxPooling(2x2, 2,2)
(7): SpatialBatchNormalizationShiftPow2
(8): nn.HardTanh
(9): BinarizedNeurons
(10): cudnnBinarySpatialConvolution(128 -> 256, 3x3, 1,1, 1,1)
(11): SpatialBatchNormalizationShiftPow2
(12): nn.HardTanh
(13): BinarizedNeurons
(14): cudnnBinarySpatialConvolution(256 -> 256, 3x3, 1,1, 1,1)
(15): cudnn.SpatialMaxPooling(2x2, 2,2)
(16): SpatialBatchNormalizationShiftPow2
(17): nn.HardTanh
(18): BinarizedNeurons
(19): cudnnBinarySpatialConvolution(256 -> 512, 3x3, 1,1, 1,1)
(20): SpatialBatchNormalizationShiftPow2
(21): nn.HardTanh
(22): BinarizedNeurons
(23): cudnnBinarySpatialConvolution(512 -> 512, 3x3, 1,1, 1,1)
(24): cudnn.SpatialMaxPooling(2x2, 2,2)
(25): SpatialBatchNormalizationShiftPow2
(26): nn.HardTanh
(27): BinarizedNeurons
(28): nn.View(8192)
(29): BinaryLinear(8192 -> 1024)
(30): BatchNormalizationShiftPow2
(31): nn.HardTanh
(32): BinarizedNeurons
(33): BinaryLinear(1024 -> 1024)
(34): BatchNormalizationShiftPow2
(35): nn.HardTanh
(36): BinarizedNeurons
(37): BinaryLinear(1024 -> 10)
(38): nn.BatchNormalization
}
==>14033566 Parameters
==> Loss
SqrtHingeEmbeddingCriterion

==> Starting Training

Epoch 1
/home/andy1028/torch/install/bin/luajit: /home/andy1028/torch/install/share/lua/5.1/nn/Container.lua:67:
In 1 module of nn.Sequential:
/home/andy1028/torch/install/share/lua/5.1/cudnn/init.lua:115: bad argument #4 to '?' (cannot convert 'int *' to 'int')
stack traceback:
[builtin#173]: at 0x00455840
/home/andy1028/torch/install/share/lua/5.1/cudnn/init.lua:115: in function 'errcheck'
...ithub/BinaryNet/Models/cudnnBinarySpatialConvolution.lua:71: in function 'resetWeightDescriptors'
...torch/install/share/lua/5.1/cudnn/SpatialConvolution.lua:364: in function 'updateOutput'
...ithub/BinaryNet/Models/cudnnBinarySpatialConvolution.lua:146: in function <...ithub/BinaryNet/Models/cudnnBinarySpatialConvolution.lua:142>
[C]: in function 'xpcall'
/home/andy1028/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors'
...e/andy1028/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'
Main_BinaryNet_Cifar10.lua:214: in function 'Train'
Main_BinaryNet_Cifar10.lua:270: in main chunk
[C]: in function 'dofile'
...1028/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00405ea0

WARNING: If you see a stack trace below, it doesn't point to the place where this error occurred. Please use only the one above.
stack traceback:
[C]: in function 'error'
/home/andy1028/torch/install/share/lua/5.1/nn/Container.lua:67: in function 'rethrowErrors'
...e/andy1028/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'
Main_BinaryNet_Cifar10.lua:214: in function 'Train'
Main_BinaryNet_Cifar10.lua:270: in main chunk
[C]: in function 'dofile'
...1028/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00405ea0
andy1028@andy1028-Envy:/media/andy1028/data1t/os_prj/github/BinaryNet$
andy1028@andy1028-Envy:/media/andy1028/data1t/os_prj/github/BinaryNet$
andy1028@andy1028-Envy:/media/andy1028/data1t/os_prj/github/BinaryNet$
andy1028@andy1028-Envy:/media/andy1028/data1t/os_prj/github/BinaryNet$
andy1028@andy1028-Envy:/media/andy1028/data1t/os_prj/github/BinaryNet$ git remote -v
origin https://github.com/itayhubara/BinaryNet.git (fetch)
origin https://github.com/itayhubara/BinaryNet.git (push)
andy1028@andy1028-Envy:/media/andy1028/data1t/os_prj/github/BinaryNet$

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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