This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
zzy34407230
/
mindspore2022
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
22
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
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
c4993cb3b6
a33a0964d7
commit
5aa6568db9
No known key found for this signature in database
GPG Key ID:
173E9B9CA92EEF8F
3 changed files
with
3 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
docs/api/api_python/ops/mindspore.ops.Print.rst
+1
-1
mindspore/ccsrc/common/debug/rdr/base_recorder.cc
+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:
Write
Preview
Loading…
Cancel
Save