Fix unittest by change double to float.

This commit is contained in:
sunwen
2023-11-15 14:16:35 +08:00
parent d520489823
commit aaa5622c89
3 changed files with 8 additions and 48 deletions

View File

@@ -286,7 +286,7 @@ TEST_F(Function2D_Test, sort) {
EXPECT_FLOAT_EQ(-38.5, ret.getData()[12]);
//big sort 10w以上多线程快
float * dataA = Aurora::random(1000000*4);
auto A = Aurora::Matrix::New(dataA, 1000000, 4);
auto A = Aurora::Matrix::fromRawData(dataA, 1000000, 4);
ret = Aurora::sort(A);
}
@@ -302,8 +302,6 @@ TEST_F(Function2D_Test, sortrows) {
auto B = transpose(Aurora::Matrix::fromRawData(dataB, 7, 6));
Aurora::Matrix idx ;
auto ret = Aurora::sortrows(B,&idx);
ret.printf();
idx.printf();
}
TEST_F(Function2D_Test, median) {