mindspore/docs/api/api_python/ops/mindspore.ops.TensorSummary...

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