Comments (2)
I could fix the error by modification of cudnnBinarySpatialConvolution.lua as follows.
Lines 71 to 73:
Original
errcheck('cudnnSetFilterNdDescriptor', self.weightDesc[0],
'CUDNN_DATA_FLOAT', 4,
desc:data());
Modified
errcheck('cudnnSetFilterNdDescriptor', self.weightDesc[0],
'CUDNN_DATA_FLOAT', 'CUDNN_TENSOR_NCHW', 4,
desc:data());
from binarynet.
same error occurs when using "nn" library on CPU, but BinarySpatialConvolution.lua doesn't have such errcheck code. How to modify it?
the error is shown below:
Epoch 1
/home/ml/torch/install/bin/luajit: /home/ml/torch/install/share/lua/5.1/nn/Container.lua:67:
In 23 module of nn.Sequential:
/home/ml/torch/install/share/lua/5.1/nn/THNN.lua:110: bad argument #8 to 'v' (cannot convert 'struct THFloatTensor *' to 'int')
stack traceback:
[C]: in function 'v'
/home/ml/torch/install/share/lua/5.1/nn/THNN.lua:110: in function 'SpatialConvolutionMM_updateGradInput'
...CLA/work/BinaryNet-1/Models/BinarySpatialConvolution.lua:150: in function 'updateGradInput'
/home/ml/torch/install/share/lua/5.1/nn/Module.lua:31: in function </home/ml/torch/install/share/lua/5.1/nn/Module.lua:29>
[C]: in function 'xpcall'
/home/ml/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors'
/home/ml/torch/install/share/lua/5.1/nn/Sequential.lua:84: in function 'backward'
Main_BinaryNet_Cifar10.lua:227: in function 'opfunc'
./adaMax_binary_clip_shift.lua:38: in function 'adaMax_binary_clip_shift'
Main_BinaryNet_Cifar10.lua:231: in function 'Train'
Main_BinaryNet_Cifar10.lua:270: in main chunk
[C]: in function 'dofile'
...e/ml/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50
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/ml/torch/install/share/lua/5.1/nn/Container.lua:67: in function 'rethrowErrors'
/home/ml/torch/install/share/lua/5.1/nn/Sequential.lua:84: in function 'backward'
Main_BinaryNet_Cifar10.lua:227: in function 'opfunc'
./adaMax_binary_clip_shift.lua:38: in function 'adaMax_binary_clip_shift'
Main_BinaryNet_Cifar10.lua:231: in function 'Train'
Main_BinaryNet_Cifar10.lua:270: in main chunk
[C]: in function 'dofile'
...e/ml/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50
from binarynet.
Related Issues (20)
- QNN update
- bad argument #4 to '?' (cannot convert 'int *' to 'int') HOT 2
- why we cannot use gpu 0?
- several errors when I run with "th Main_BinaryNet_MNIST.lua -network BinaryNet_MNIST_Model" HOT 1
- Unable to install dependencies HOT 1
- Out of memory HOT 1
- Stop before performing the set epoch HOT 1
- Main_BinaryNet_Cifar10.lua Line 84 local data = require 'Data' does not return
- Why are we multiplying (instead of dividing) by the std here? HOT 1
- About the Cifar10 case HOT 2
- Hi, when I trained the network. I got a file named 'Net' in Results directory. But I have no idea how can I open and use this file?
- An error in BinaryNet_Cifar10_Model.lua
- error when run "luarocks install cudnn"
- Troubleshoot in running your code HOT 2
- out of memory at /tmp/luarocks_cutorch-scm-1-7471/cutorch
- read error:
- limited number of epochs HOT 2
- Comparison with standard model HOT 1
- BinaryNet in TensorFlow ?... HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from binarynet.