未验证 提交 f5876927 编写于 作者: H HappyAngel 提交者: GitHub

ff, test=develop

上级 8a97443b
...@@ -318,7 +318,7 @@ TEST(TestLiteGemvInt8, gemv_prepacked_int8) { ...@@ -318,7 +318,7 @@ TEST(TestLiteGemvInt8, gemv_prepacked_int8) {
for (auto& n : {1, 3, 13, 141, 512, 789}) { for (auto& n : {1, 3, 13, 141, 512, 789}) {
for (auto& tra : {false}) { for (auto& tra : {false}) {
for (auto& has_bias : {false, true}) { for (auto& has_bias : {false, true}) {
for (auto& flag_act : {0, 1, 4}) { for (auto& has_relu : {false, true}) {
for (auto& th : {1, 2, 4}) { for (auto& th : {1, 2, 4}) {
float six = 6.f; float six = 6.f;
float alpha = 8.88f; float alpha = 8.88f;
...@@ -326,7 +326,7 @@ TEST(TestLiteGemvInt8, gemv_prepacked_int8) { ...@@ -326,7 +326,7 @@ TEST(TestLiteGemvInt8, gemv_prepacked_int8) {
m, m,
n, n,
has_bias, has_bias,
flag_act, has_relu > 0,
FLAGS_power_mode, FLAGS_power_mode,
th, th,
six, six,
...@@ -334,13 +334,13 @@ TEST(TestLiteGemvInt8, gemv_prepacked_int8) { ...@@ -334,13 +334,13 @@ TEST(TestLiteGemvInt8, gemv_prepacked_int8) {
if (flag) { if (flag) {
LOG(INFO) << "test m = " << m << ", n=" << n LOG(INFO) << "test m = " << m << ", n=" << n
<< ", bias: " << (has_bias ? "true" : "false") << ", bias: " << (has_bias ? "true" : "false")
<< ", act: " << flag_act << ", relu: " << (has_relu ? "true" : "false")
<< ", trans A: " << (tra ? "true" : "false") << ", trans A: " << (tra ? "true" : "false")
<< " passed\n"; << " passed\n";
} else { } else {
LOG(FATAL) << "test m = " << m << ", n=" << n LOG(FATAL) << "test m = " << m << ", n=" << n
<< ", bias: " << (has_bias ? "true" : "false") << ", bias: " << (has_bias ? "true" : "false")
<< ", act: " << flag_act << ", relu: " << (has_relu ? "true" : "false")
<< ", trans A: " << (tra ? "true" : "false") << ", trans A: " << (tra ? "true" : "false")
<< " failed\n"; << " failed\n";
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册