提交 3ea9764d authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Indentation

上级 c21e6421
...@@ -106,9 +106,9 @@ class RandomFunction(gof.Op): ...@@ -106,9 +106,9 @@ class RandomFunction(gof.Op):
self.state = state self.state = state
fn, outtype, inplace, ndim_added = state fn, outtype, inplace, ndim_added = state
if isinstance(fn, str): if isinstance(fn, str):
self.fn = getattr(numpy.random.RandomState, fn) self.fn = getattr(numpy.random.RandomState, fn)
else: else:
self.fn = fn self.fn = fn
self.outtype = outtype self.outtype = outtype
self.inplace = inplace self.inplace = inplace
if self.inplace: if self.inplace:
...@@ -794,5 +794,3 @@ class RandomStreamsBase(object): ...@@ -794,5 +794,3 @@ class RandomStreamsBase(object):
shuffled = tensor.permute_row_elements(input, perm) shuffled = tensor.permute_row_elements(input, perm)
shuffled.permutation = perm shuffled.permutation = perm
return shuffled return shuffled
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论