提交 370cfcd0 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Made size argument mandatory in normal(..)

Having it default to None suggests it is optional, which is not true (it will crash when using None).
上级 8632816e
......@@ -848,7 +848,7 @@ class MRG_RandomStreams(object):
raise NotImplementedError(("MRG_RandomStreams.multinomial only"
" implemented with n == 1 and pvals.ndim = 2"))
def normal(self, size=None, avg=0.0, std=1.0, ndim=None,
def normal(self, size, avg=0.0, std=1.0, ndim=None,
dtype=None, nstreams=None):
"""
:param size: Can be a list of integers or Theano variables (ex: the
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论