提交 df6bb755 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Whitespace

上级 6f48f330
...@@ -260,9 +260,9 @@ class TestConv3D(unittest.TestCase): ...@@ -260,9 +260,9 @@ class TestConv3D(unittest.TestCase):
self.W.set_value( self.W.set_value(
self.random_tensor(numFilters,filterHeight,filterWidth,filterDur,inputChannels), self.random_tensor(numFilters,filterHeight,filterWidth,filterDur,inputChannels),
borrow=True) borrow=True)
self.b.set_value(self.random_tensor(numFilters), borrow=True) self.b.set_value(self.random_tensor(numFilters), borrow=True)
self.V.set_value( self.V.set_value(
self.random_tensor(batchSize,videoHeight,videoWidth,videoDur,inputChannels), self.random_tensor(batchSize,videoHeight,videoWidth,videoDur,inputChannels),
borrow=True) borrow=True)
...@@ -277,7 +277,7 @@ class TestConv3D(unittest.TestCase): ...@@ -277,7 +277,7 @@ class TestConv3D(unittest.TestCase):
Hv = self.random_tensor( * H_shape ) Hv = self.random_tensor( * H_shape )
Vv = self.transp_func(Hv,[videoHeight,videoWidth,videoDur]) Vv = self.transp_func(Hv,[videoHeight,videoWidth,videoDur])
n = inputChannels * videoHeight * videoWidth * videoDur n = inputChannels * videoHeight * videoWidth * videoDur
rbim = N.zeros((videoHeight,videoWidth,videoDur,inputChannels)) rbim = N.zeros((videoHeight,videoWidth,videoDur,inputChannels))
for qi in xrange(0,inputChannels): for qi in xrange(0,inputChannels):
...@@ -425,8 +425,8 @@ class TestConv3D(unittest.TestCase): ...@@ -425,8 +425,8 @@ class TestConv3D(unittest.TestCase):
self.randomize() self.randomize()
Hv = self.H_func() Hv = self.H_func()
H_shape = self.H_shape_func() H_shape = self.H_shape_func()
assert N.all(Hv.shape == H_shape) assert N.all(Hv.shape == H_shape)
gradients = self.gradientsFunc(self.V.get_value(borrow=True).shape[1:4]) gradients = self.gradientsFunc(self.V.get_value(borrow=True).shape[1:4])
dCdWv = gradients[0] dCdWv = gradients[0]
dCdW_shape = self.dCdW_shape_func(self.V.get_value(borrow=True).shape[1:4]) dCdW_shape = self.dCdW_shape_func(self.V.get_value(borrow=True).shape[1:4])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论