提交 57934665 authored 作者: Frederic's avatar Frederic

another test case

上级 e96cdee3
...@@ -622,3 +622,4 @@ test_shared_options = makeSharedTester( ...@@ -622,3 +622,4 @@ test_shared_options = makeSharedTester(
def test_scalar_shared_options(): def test_scalar_shared_options():
# Simple test to make sure we do not loose that fonctionality. # Simple test to make sure we do not loose that fonctionality.
theano.shared(value=0., name='lk', borrow=True) theano.shared(value=0., name='lk', borrow=True)
theano.shared(value=numpy.float32(0.), name='lk', borrow=True)
...@@ -68,11 +68,11 @@ class RopLop_checker(unittest.TestCase): ...@@ -68,11 +68,11 @@ class RopLop_checker(unittest.TestCase):
self.x = tensor.vector('x') self.x = tensor.vector('x')
self.v = tensor.vector('v') self.v = tensor.vector('v')
self.rng = numpy.random.RandomState(utt.fetch_seed()) self.rng = numpy.random.RandomState(utt.fetch_seed())
self.in_shape = (5 + self.rng.randint(30),) self.in_shape = (5 + self.rng.randint(3),)
self.mx = tensor.matrix('mx') self.mx = tensor.matrix('mx')
self.mv = tensor.matrix('mv') self.mv = tensor.matrix('mv')
self.mat_in_shape = (5 + self.rng.randint(30), self.mat_in_shape = (5 + self.rng.randint(3),
5 + self.rng.randint(30)) 5 + self.rng.randint(3))
def check_nondiff_rop(self, y): def check_nondiff_rop(self, y):
""" If your op is not differentiable(so you can't define Rop) """ If your op is not differentiable(so you can't define Rop)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论