Comments (6)
@xonobo can't you just take your input and do
input=input:view(1,input:size(1),input:size(2),input:size(3))
before feeding the input to the network ?
from cudnn.torch.
Some time ago I observed that cudnn doesn't like 0-strides, I think this is the case. fmassa's solution should work.
from cudnn.torch.
I tried this but now gives an assertion fail
m:forward(torch.rand(1,7,7):view(1,1,7,7):cuda())
/torch/install/share/lua/5.1/cudnn/SpatialConvolution.lua:92: assertion failed!
stack traceback:
[C]: in function 'assert'
/torch/install/share/lua/5.1/cudnn/SpatialConvolution.lua:92: in function 'createIODescriptors'
/torch/install/share/lua/5.1/cudnn/SpatialConvolution.lua:339: in function 'updateOutput'
/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'
[string "_RESULT={m:forward(torch.rand(1,7,7):view(1,1..."]:1: in main chunk
[C]: in function 'xpcall'
/torch/install/share/lua/5.1/trepl/init.lua:650: in function 'repl'
/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:199: in main chunk
By the way I want to handle this dummy resizing in the model. Since the input sizes of the images may vary I could not use nn.View.
from cudnn.torch.
@xonobo remove the nn.Replicate
from your network.
Also, no need to use the nn.View
module, apply the view directly to the input data, this way it's independent on the input size
from cudnn.torch.
ok forgot to remove the replicate. Now it works.
Thanks for the solution. This is not what I exactly want but handle the resizing of input before feeding to the model.
from cudnn.torch.
if you absolutely want to have the nn.Replicate(1)
in your network, add also just after it a nn.Copy(nil,nil,true)
, and then you can feed the input without viewing it. But it won't handle the case where the input is already batched.
from cudnn.torch.
Related Issues (20)
- Error in CuDNN: CUDNN_STATUS_INTERNAL_ERROR(lua5.1,1080ti, CUDA8.0,cudnn5.1) HOT 6
- Error in CuDNN: CUDNN_STATUS_BAD_PARAM (cudnnGetConvolutionNdForwardOutputDim) when using VolumetricConvolution HOT 1
- Loss is NaN when using half precision HOT 3
- Is there any CuDNN bindings update plan? HOT 8
- Machine GPU type dependency: invalid device function HOT 1
- cudnn7.0 not supported even installed -R7 branch? HOT 5
- CuDNN v7 for Cuda 9.0 not working HOT 9
- cudnnConvolutionBackwardData failed - Error in CuDNN: CUDNN_STATUS_NOT_SUPPORTED (cudnnConvolutionBackwardData) HOT 8
- Slow loading time HOT 8
- Bug with GroupConvolutions with Padding using R7 branch
- CUDNN_STATUS_INTERNAL_ERROR lua torch HOT 1
- How to implement CNN+LSTM using cudnn torch
- THNN is nil HOT 1
- clearState breaks nn.MV
- ETN Mining - [CUDA] Error gpu 0: <C:/xmr-stak/xmr-stak-2.4.5/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu>:381
- Does cudnn.torch support nvidia v100 tensor cores?
- require cudnn takes 10 minutes on a Volta with 1 GPU (Cuda 9, cudnn 7.1)
- build error HOT 1
- RuntimeError: cuDNN version incompatibility: PyTorch was compiled against 7401 but linked against 7301
- 'CudaByteStorage' (a nil value)
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 cudnn.torch.