Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tensor str #5783
Tensor str #5783
Changes from 242 commits
76fcd6f
ab4b2f5
daf5bcc
497fc82
e129aa2
d5b7b39
870909c
c572b50
6546627
f7da2fe
79ecc37
ca9e32a
708732e
f616d8a
0bc6143
b76498d
aadf35d
4b98830
62b03e1
75a3c20
c5c4cfb
0aa5eb2
50d667c
5fe6f3d
4eaad64
25f471c
e496f0c
58fdcee
912955f
fbdc64e
4efb2e8
5240fba
f8e6fd9
2b120a4
f41a674
6baec14
6f6aae4
d20904d
db7e064
d248b3d
68bb49f
6e8a083
f7aa67f
9a2f9d5
122acb7
43a2ac5
0101184
6a7cb4a
f2b0c79
e670f76
b269845
5be290a
95ee6e2
1926037
784e1b5
761b854
3ee8ff8
f740b5b
9e766f5
9ae95db
d8b2201
be254d9
e3db142
835fe87
5532ab3
647cc4e
36877dd
0fa7d71
32129f1
cbed793
241b21e
0ac82e5
58b0b03
2157e94
f22f41a
2197648
f359664
6e320a1
6dafbfe
9238d18
e323677
e86d99c
960ec64
5d481a2
b53c42d
fcbb0b2
df73c27
035fcb5
076d113
8045564
0e6543e
8bce478
c80ffa5
154a13c
e562062
e7a0e1b
7662fe9
6e638e8
57d86b3
7bd72c3
36acab6
777e8d8
997af6b
85d9282
8ef19de
9947b59
11d804a
5a0115b
f5f5dc0
99b4474
e279ac6
243f38f
571ee49
e9546cf
6d410c6
36b795f
347ed40
3dbd4a0
31b84b1
cb60b7f
c22dadc
4e9be9f
b375cb6
bd8e674
757f3af
dabdc82
2025c49
8064006
583631e
f6d8b7b
75d3b25
aa6aa51
244e7c5
884a8b1
3bb999d
672e154
3685ef2
82a9a6a
519a412
e50541e
2001a3e
722c2bd
16cbecc
98f0a34
5a07dbd
3aba1e5
ccea342
adeae51
9ee20d1
ddafc4b
a9f22cf
a3f24c9
9a11d91
8314ac8
d7313b8
7ff3642
4012be1
16931d8
732e3b9
1aeb9cb
b7928ca
f14211d
02723df
9ab791c
2225e69
b4f2e2a
1713683
3ba9155
ef7fbef
ab450a5
ad5c97c
6216608
36d0548
36de59a
d4fd982
97ae072
548252f
54230c0
690b304
266d39c
1b28569
ae56afa
95486f1
1fb94a0
8fbcd87
3780265
ae5db2a
acd3aee
f53e8eb
56e4a9a
1ad368d
e6f7e17
7111986
9f197aa
5aca834
d0d6ae7
59fc9fb
d78fef4
b4ebba3
e2672bd
ee5c062
a8fdf98
c847b20
f3c2083
f6480f1
0709d73
9132a7c
a4bca38
f98f955
ae827d2
aaccdfa
1007a34
05efe42
7672567
fce2324
668eb0d
14b84f5
ec4e5c3
e5891f1
d5af9e2
1d4b384
e97a98f
922dd44
efe4036
ab3db5d
50a7112
0429a70
8edd278
60b4de3
2608d7c
b8ded1b
77d28c9
a879c24
846532f
a2708cd
f500d83
6b4659a
401f31b
aced335
9aad791
5db1b30
6ca303d
2815036
644051b
5585631
07e4f7e
96ef2e8
3857253
8e44cef
705b323
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
torch 并不会 把 0 align 到 0.000,这样做有什么好处吗? numpy 也不会。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
torch.zeros(2, 2) 的话我们也是打印
0.
的,因为数据都是没有小数位的,这时候会启动整数模式,不打印小数位。上面这个例子是其它数不满足这个条件,为了格式上对齐,会打印
0.0000
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
确实是这样。学到了~