@@ -423,7 +423,7 @@ class TestSparseCOOTensorCreationFromNegativeZero
423
423
424
424
void FromVector () {
425
425
std::vector<ValueCType> data{
426
- -0.0 , -0.0 , - 0.0 , -0.0 , 4.0 , - 0.0 , -0.0 , -0.0 , -0.0 , -1.0 , - 0.0 , -0.0 ,
426
+ -0.0 , -0.0 , 0.0 , -0.0 , 4.0 , + 0.0 , -0.0 , -0.0 , -0.0 , -1.0 , 0.0 , -0.0 ,
427
427
};
428
428
std::vector<int64_t > shape = {12 };
429
429
auto buffer = Buffer::FromVector (data);
@@ -442,9 +442,9 @@ class TestSparseCOOTensorCreationFromNegativeZero
442
442
void FromContiguousTensor () {
443
443
// clang-format off
444
444
std::vector<ValueCType> data{
445
- -0.0 , - 0.0 , -0.0 ,
446
- - 0.0 , 4.0 , -0.0 ,
447
- -0.0 , -0.0 , - 0.0 ,
445
+ -0.0 , 0.0 , -0.0 ,
446
+ + 0.0 , 4.0 , -0.0 ,
447
+ -0.0 , -0.0 , 0.0 ,
448
448
-1.0 , -0.0 , -0.0 ,
449
449
};
450
450
// clang-format on
@@ -465,10 +465,10 @@ class TestSparseCOOTensorCreationFromNegativeZero
465
465
void FromNonContiguousTensor () {
466
466
// clang-format off
467
467
std::vector<ValueCType> data{
468
- -0.0 , -0.0 , - 0.0 , 1.0 , 2.0 ,
469
- -0.0 , 4.0 , - 0.0 , - 0.0 , -0.0 ,
470
- -0.0 , - 0.0 , -0.0 , 3.0 , 4.0 ,
471
- -1.0 , -0.0 , -0.0 , -0.0 , - 0.0 ,
468
+ -0.0 , -0.0 , 0.0 , 1.0 , 2.0 ,
469
+ -0.0 , 4.0 , 0.0 , 0.0 , -0.0 ,
470
+ -0.0 , + 0.0 , -0.0 , 3.0 , 4.0 ,
471
+ -1.0 , -0.0 , -0.0 , -0.0 , + 0.0 ,
472
472
};
473
473
// clang-format on
474
474
std::vector<int64_t > shape = {4 , 3 };
@@ -973,10 +973,10 @@ class TestSparseCSRTensorCreationFromNegativeZero
973
973
void FromTensor () {
974
974
// clang-format off
975
975
std::vector<ValueCType> data{
976
- -0.0 , -0.0 , - 0.0 ,
976
+ -0.0 , -0.0 , 0.0 ,
977
977
-0.0 , 4.0 , -0.0 ,
978
- - 0.0 , -0.0 , -0.0 ,
979
- -1.0 , -0.0 , - 0.0 ,
978
+ + 0.0 , -0.0 , -0.0 ,
979
+ -1.0 , -0.0 , + 0.0 ,
980
980
};
981
981
// clang-format on
982
982
std::vector<int64_t > shape = {4 , 3 };
@@ -1353,9 +1353,9 @@ class TestSparseCSCTensorCreationFromNegativeZero
1353
1353
void FromTensor () {
1354
1354
// clang-format off
1355
1355
std::vector<ValueCType> data{
1356
- -0.0 , -0.0 , - 0.0 ,
1356
+ -0.0 , -0.0 , + 0.0 ,
1357
1357
-0.0 , 4.0 , -0.0 ,
1358
- -0.0 , - 0.0 , -0.0 ,
1358
+ -0.0 , 0.0 , -0.0 ,
1359
1359
-1.0 , -0.0 , -0.0 ,
1360
1360
};
1361
1361
// clang-format on
@@ -1673,9 +1673,9 @@ class TestSparseCSFTensorCreationFromNegativeZero
1673
1673
void FromTensor () {
1674
1674
// clang-format off
1675
1675
std::vector<ValueCType> data{
1676
- -0.0 , -0.0 , - 0.0 , -0.0 ,
1677
- 4.0 , - 0.0 , -0.0 , -0.0 ,
1678
- - 0.0 , -1.0 , -0.0 , -0.0 ,
1676
+ -0.0 , -0.0 , 0.0 , -0.0 ,
1677
+ 4.0 , + 0.0 , -0.0 , -0.0 ,
1678
+ 0.0 , -1.0 , -0.0 , -0.0 ,
1679
1679
};
1680
1680
// clang-format on
1681
1681
std::vector<int64_t > shape = {3 , 4 };
0 commit comments