提交 55cd62b2 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Update the doc of _infer_ndim_bcast

上级 3ea9764d
...@@ -239,14 +239,12 @@ def _infer_ndim_bcast(ndim, shape, *args): ...@@ -239,14 +239,12 @@ def _infer_ndim_bcast(ndim, shape, *args):
""" """
Infer the number of dimensions from the shape or the other arguments. Infer the number of dimensions from the shape or the other arguments.
:rtype: (int, variable) pair, where the variable is an integer vector. :rtype: (int, variable, tuple) triple, where the variable is an integer
vector, and the tuple contains Booleans.
:returns: the first element returned is the inferred number of dimensions. :returns: the first element returned is the inferred number of dimensions.
The second element's length is either the first element, or 0 The second element is the shape inferred (combining symbolic and constant
(if the original shape was None). informations from shape and args).
The third element is a broadcasting pattern corresponding to that shape.
In the special case where the shape argument is None, the variable
returned has a length of 0, meaning that the shape will be computed
at runtime from the shape of the other args.
""" """
# Find the minimum value of ndim required by the *args # Find the minimum value of ndim required by the *args
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论