refactor convertfp16tofloat

This commit is contained in:
kradchen
2023-05-09 17:44:06 +08:00
parent b04c5ff58f
commit 04608db7e0
2 changed files with 91 additions and 66 deletions

View File

@@ -51,7 +51,7 @@ TEST_F(Common_Test, convertfp16tofloat) {
auto resultM = Recon::convertfp16tofloat(ma);
auto result = resultM.getData();
auto output = m.read("output");
for (size_t i = 0; i<10; i++) {
for (size_t i = 0; i<count; i++) {
EXPECT_EQ(result[i], output.getData()[i])<<"index:"<<i<<",input:"<< ((short*)ma.getData())[i]<<",input2:"<<input.get()[i];
}