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

19 lines
864 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.ScalarSummary
============================
.. py:class:: mindspore.ops.ScalarSummary
将标量数据保存到Summary文件。必须和 :class:`mindspore.SummaryRecord`:class:`mindspore.SummaryCollector` 一起使用,
Summary文件的保存路径由SummaryRecord或SummaryCollector指定。
在Ascend平台上的Graph模式下可以通过设置环境变量 `MS_DUMP_SLICE_SIZE``MS_DUMP_WAIT_TIME` 解决在密集调用场景下,该算子执行失败的问题。
输入:
- **name** (str) - 输入标量的名称,不能是空字符串。
- **value** (Tensor) - 标量数据的值维度必须为0或者1。
异常:
- **TypeError** - 如果 `name` 不是str。
- **TypeError** - 如果 `value` 不是Tensor。
- **ValueError** - 如果 `value` 的维度大于1。