2.3K Star 8.1K Fork 4.3K

GVPMindSpore / mindspore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mindspore.ops.func_full_like.rst 743 Bytes
一键复制 编辑 原始数据 按行查看 历史
wind-zyx 提交于 2023-04-20 20:21 . ops update value format 0420

mindspore.ops.full_like

.. py:function:: mindspore.ops.full_like(input, fill_value, *, dtype=None)

    返回一个shape与 `input` 相同并且使用 `fill_value` 填充的Tensor。

    参数:
        - **input** (Tensor) - 输入Tensor,输出Tensor与 `input` 具有相同的shape。
        - **fill_value** (Number) - 用来填充输出Tensor的值。当前不支持复数类型。

    关键字参数:
        - **dtype** (mindspore.dtype, 可选) - 指定输出Tensor的数据类型。数据类型只支持 `bool_` 和 `number` ,更多细节详见 :class:`mindspore.dtype` 。默认值: ``None`` 。

    返回:
        Tensor。

    异常:
        - **TypeError** - `input` 不是Tensor。
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore
master

搜索帮助