mindspore/docs/api/api_python/ops/mindspore.ops.func_full.rst

20 lines
487 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.full
==================
.. py:function:: mindspore.ops.full(size, fill_value, *, dtype=None)
创建tensor用指定值填充。
.. note::
`fill_value` 不支持复数类型。
参数:
- **size** (Union(tuple[int], list[int])) - 指定的shape。
- **fill_value** (number.Number) - 指定值。
关键字参数:
- **dtype** (mindspore.dtype) - 指定数据类型。默认 ``None``
返回:
Tensor