Skip to content

Instantly share code, notes, and snippets.

View nicholas-leonard's full-sized avatar

Nicholas Léonard nicholas-leonard

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stephenparish
stephenparish / submodule-pull.sh
Created July 15, 2014 15:03
Update submodules in a git repository to the latest, but exclude one..
git submodule foreach '[ "$path" == "submodule-to-exclude" ] || git pull origin master'
@soumith
soumith / gist:c5a7ac73e06aee39e48d
Created May 1, 2014 01:36
gist of using the *CUDA modules
features = nn.Sequential()
features:add(nn.Transpose({1,4},{1,3},{1,2}))
features:add(nn.SpatialConvolutionCUDA(fSize[1], fSize[2], 9, 9, 2, 2)) -- (111 - 9 + 2)/2 = 52
features:add(nn.Threshold(0,1e-6))
features:add(nn.SpatialMaxPoolingCUDA(2,2,2,2)) -- 26
features:add(nn.SpatialConvolutionCUDA(fSize[2], fSize[3], 5, 5)) -- 22
features:add(nn.Threshold(0,1e-6))
features:add(nn.SpatialMaxPoolingCUDA(2,2,2,2)) -- 11
features:add(nn.SpatialConvolutionCUDA(fSize[3], fSize[4], 4, 4)) -- 8
features:add(nn.Threshold(0,1e-6))