Fix error in training script due to missing libcudnn.so
This commit is contained in:
parent
c4df6f11f4
commit
56582b8401
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ function nn.SpatialConvolutionMM:reset(stdv)
|
||||||
self.weight:normal(0, stdv)
|
self.weight:normal(0, stdv)
|
||||||
self.bias:zero()
|
self.bias:zero()
|
||||||
end
|
end
|
||||||
if cudnn then
|
if cudnn and cudnn.SpatialConvolution then
|
||||||
function cudnn.SpatialConvolution:reset(stdv)
|
function cudnn.SpatialConvolution:reset(stdv)
|
||||||
stdv = math.sqrt(2 / ((1.0 + 0.1 * 0.1) * self.kW * self.kH * self.nOutputPlane))
|
stdv = math.sqrt(2 / ((1.0 + 0.1 * 0.1) * self.kW * self.kH * self.nOutputPlane))
|
||||||
self.weight:normal(0, stdv)
|
self.weight:normal(0, stdv)
|
||||||
|
|
Loading…
Reference in a new issue