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

11 lines
259 B
ReStructuredText
Raw 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.Ones
===================
.. py:class:: mindspore.ops.Ones
创建一个值全为1的Tensor。
第一个参数指定Tensor的shape第二个参数指定填充值的数据类型。
更多参考详见 :func:`mindspore.ops.ones`