提交 f22f449a authored 作者: Saizheng Zhang's avatar Saizheng Zhang

fix flake8

上级 6db01d86
...@@ -317,7 +317,7 @@ class mrg_uniform_base(Op): ...@@ -317,7 +317,7 @@ class mrg_uniform_base(Op):
# this op should not be called directly. # this op should not be called directly.
# #
# call through MRG_RandomStreams instead. # call through MRG_RandomStreams instead.
broad=[] broad = []
for i in range(self.output_type.ndim): for i in range(self.output_type.ndim):
broad.append(tensor.extract_constant(size[i]) == 1) broad.append(tensor.extract_constant(size[i]) == 1)
output_type = self.output_type.clone(broadcastable=broad)() output_type = self.output_type.clone(broadcastable=broad)()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论