From 0baa6fe3f0e097dd7e347a3a330656fc5be889b1 Mon Sep 17 00:00:00 2001 From: ZhenWang Date: Wed, 5 Dec 2018 11:39:31 +0800 Subject: [PATCH] add enforce for pooling_int8 ut --- test/operators/test_pool_op.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/operators/test_pool_op.cpp b/test/operators/test_pool_op.cpp index 0cba4cd144..5784ac0654 100644 --- a/test/operators/test_pool_op.cpp +++ b/test/operators/test_pool_op.cpp @@ -173,8 +173,8 @@ int TestPoolOp(int in_channels, int in_height, int in_width) { const T *output_data = output->data(); T *output_cmp_data = output_cmp.data(); for (int i = 0; i < output->numel(); ++i) { - // PADDLE_MOBILE_ENFORCE(output_data[i] == output_cmp_data[i], - // "The execution of test_pool_op is failed!"); + PADDLE_MOBILE_ENFORCE(output_data[i] == output_cmp_data[i], + "The execution of test_pool_op is failed!"); if (output_data[i] == output_cmp_data[i]) { ++eq; } else { -- GitLab