Browse Source

!32234 modify print cn comment

Merge pull request !32234 from changzherui/mod_print_cn
pull/1/head
i-robot Gitee 4 years ago
parent
commit
5aa6568db9
No known key found for this signature in database GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 3 additions and 2 deletions
  1. +2
    -0
      docs/api/api_python/ops/mindspore.ops.Print.rst
  2. +1
    -1
      mindspore/ccsrc/common/debug/rdr/base_recorder.cc
  3. +0
    -1
      mindspore/ccsrc/include/common/debug/rdr/base_recorder.h

+ 2
- 0
docs/api/api_python/ops/mindspore.ops.Print.rst View File

@@ -9,6 +9,8 @@ mindspore.ops.Print

.. note::
在PyNative模式下,请使用Python print函数。在Graph模式下,bool、int和float将被转换为Tensor进行打印,str保持不变。
该方法用于代码调试,当同时print大量数据时,为了保证主进程不受影响,可能会丢失一些数据,这时推荐使用 `Summary` 功能,具体可查看
`Summary <https://www.mindspore.cn/mindinsight/docs/zh-CN/master/summary_record.html?highlight=summary#>`_.

**输入:**



+ 1
- 1
mindspore/ccsrc/common/debug/rdr/base_recorder.cc View File

@@ -20,7 +20,7 @@

namespace mindspore {
namespace {
constexpr int kMaxNameLength = 32;
constexpr int kMaxNameLength = 64;
} // namespace
BaseRecorder::BaseRecorder() : module_(""), name_(""), directory_(""), filename_(""), timestamp_("") {}
BaseRecorder::BaseRecorder(const std::string &module, const std::string &name)


+ 0
- 1
mindspore/ccsrc/include/common/debug/rdr/base_recorder.h View File

@@ -24,7 +24,6 @@
#include "include/common/visible.h"
#include "utils/log_adapter.h"

const int maxNameLength = 64;
namespace mindspore {
class COMMON_EXPORT BaseRecorder {
public:


Loading…
Cancel
Save