https://www.mindspore.cn/docs/zh-CN/r2.2/api_python/numpy/mindspore.numpy.randn.html
Returns a new Tensor with given shape and dtype, filled with a sample (or samples)
from the standard normal distribution.
参数
*shape (Union[int, tuple(int), list(int)]) – Shape of the new tensor, e.g.,
or .
dtype (Union[mindspore.dtype, str], optional) – Designated tensor dtype, it must
be float type. Default is mindspore.float32.
返回
Tensor, with the designated shape and dtype, filled with a sample (or samples)
from the “standard normal” distribution.
异常
TypeError – If input arguments have types not specified above.
ValueError – If dtype is not float type.
Supported Platforms:
规范和低错类:
错别字或拼写错误,标点符号使用错误、公式错误或显示异常;
链接错误、空单元格、格式错误;
英文中包含中文字符;
界面和描述不一致,但不影响操作;
表述不通顺,但不影响理解;
版本号不匹配:如软件包名称、界面版本号;
Please assign maintainer to check this issue.
请为此issue分配处理人。
@fangwenyi @chengxiaoli @Shawny
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
感谢您的提问,您可以评论//mindspore-assistant更快获取帮助:
您好,Numpy接口目前暂不提供中文,请持续关注后续版本的演进。
登录 后才可以发表评论