forked from huawei/mindspore2022
!32234 modify print cn comment
Merge pull request !32234 from changzherui/mod_print_cn
This commit is contained in:
commit
5aa6568db9
|
|
@ -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#>`_.
|
||||
|
||||
**输入:**
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue