diff --git a/docs/api/api_python/ops/mindspore.ops.Print.rst b/docs/api/api_python/ops/mindspore.ops.Print.rst index c8a70a376e7..a382af21a7b 100644 --- a/docs/api/api_python/ops/mindspore.ops.Print.rst +++ b/docs/api/api_python/ops/mindspore.ops.Print.rst @@ -9,6 +9,8 @@ mindspore.ops.Print .. note:: 在PyNative模式下,请使用Python print函数。在Graph模式下,bool、int和float将被转换为Tensor进行打印,str保持不变。 + 该方法用于代码调试,当同时print大量数据时,为了保证主进程不受影响,可能会丢失一些数据,这时推荐使用 `Summary` 功能,具体可查看 + `Summary `_. **输入:** diff --git a/mindspore/ccsrc/common/debug/rdr/base_recorder.cc b/mindspore/ccsrc/common/debug/rdr/base_recorder.cc index 380d4828236..364fe68feae 100644 --- a/mindspore/ccsrc/common/debug/rdr/base_recorder.cc +++ b/mindspore/ccsrc/common/debug/rdr/base_recorder.cc @@ -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) diff --git a/mindspore/ccsrc/include/common/debug/rdr/base_recorder.h b/mindspore/ccsrc/include/common/debug/rdr/base_recorder.h index 39c6ef69012..ec28e74bc79 100644 --- a/mindspore/ccsrc/include/common/debug/rdr/base_recorder.h +++ b/mindspore/ccsrc/include/common/debug/rdr/base_recorder.h @@ -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: