mindspore/docs/api/api_python/ops/mindspore.ops.ScalarSummary...

15 lines
461 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.ScalarSummary
============================
.. py:class:: mindspore.ops.ScalarSummary
通过标量汇总算子将标量输出到协议缓冲区。
输入:
- **name** (str) - 输入变量的名称,不能是空字符串。
- **value** (Tensor) - 标量数据的值维度必须为0或者1。
异常:
- **TypeError** - 如果 `name` 不是str。
- **TypeError** - 如果 `value` 不是Tensor。