Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/soumith/cudnn.torch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--SpatialConvolution.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/SpatialConvolution.lua b/SpatialConvolution.lua
index 23775fa..861d62f 100644
--- a/SpatialConvolution.lua
+++ b/SpatialConvolution.lua
@@ -47,7 +47,7 @@ function SpatialConvolution:resetWeightDescriptors()
end
function SpatialConvolution:fastest(mode)
- mode = mode or true
+ if mode == nil then mode = true end
self.fastest_mode = mode
return self
end