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

Whistespace

上级 eaa13c81
......@@ -175,7 +175,7 @@ class T_random_function(unittest.TestCase):
def ndim_added_deco(ndim_added):
def randomfunction(random_state, size=(), low=0.0, high=0.0, ndim=None):
ndim, size = raw_random._infer_ndim(ndim, size)
op = RandomFunction('uniform',
op = RandomFunction('uniform',
tensor.TensorType(dtype = 'float64', broadcastable =
(False,)*(ndim+ndim_added)),
ndim_added=ndim_added)
......
......@@ -676,7 +676,7 @@ class T_SharedRandomStreams(unittest.TestCase):
new_rng = numpy.random.RandomState(234234)
# Test the borrow contract is respected:
# Test the borrow contract is respected:
# assigning with borrow=False makes a copy
s_rng.set_value(new_rng, borrow=False)
assert new_rng is not s_rng.container.storage[0]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论