提交 16ba9807 authored 作者: Frederic Bastien's avatar Frederic Bastien

white space fix.

上级 ce291230
...@@ -259,7 +259,7 @@ def makeSharedTester(shared_constructor_, ...@@ -259,7 +259,7 @@ def makeSharedTester(shared_constructor_,
assert isinstance(topo[0].op,tensor.opt.Shape_i) assert isinstance(topo[0].op,tensor.opt.Shape_i)
assert isinstance(topo[1].op,tensor.opt.Shape_i) assert isinstance(topo[1].op,tensor.opt.Shape_i)
assert isinstance(topo[2].op,tensor.opt.MakeVector) assert isinstance(topo[2].op,tensor.opt.MakeVector)
#Test that we forward the input #Test that we forward the input
specify_shape_fct = theano.function([],x1_specify_shape) specify_shape_fct = theano.function([],x1_specify_shape)
assert numpy.all(specify_shape_fct()==x1_2) assert numpy.all(specify_shape_fct()==x1_2)
...@@ -309,7 +309,7 @@ def makeSharedTester(shared_constructor_, ...@@ -309,7 +309,7 @@ def makeSharedTester(shared_constructor_,
assert all(node.op == tensor.blas.gemm_inplace for node in topo if isinstance(node.op,tensor.blas.Gemm)) assert all(node.op == tensor.blas.gemm_inplace for node in topo if isinstance(node.op,tensor.blas.Gemm))
s_shared_specify = tensor.specify_shape(s_shared,s_shared.value.shape) s_shared_specify = tensor.specify_shape(s_shared,s_shared.value.shape)
#now test with the specify shape op in the output #now test with the specify shape op in the output
f = theano.function([], s_shared.shape, f = theano.function([], s_shared.shape,
updates={s_shared:theano.dot(a_shared,b_shared) updates={s_shared:theano.dot(a_shared,b_shared)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论