Increased tolerance for some tests.

The following two tests were failing when using the NNAPI delegate because of precision issues:
NoCifgPeepholeProjectionNoClippingLayerNormLstmTest.HybridLayerNormLstmBlackBoxTestUint8
CifgPeepholeProjectionNoClippingLayerNormLstmTest.HybridLayerNormLstmBlackBoxTestUint8

PiperOrigin-RevId: 261736480
This commit is contained in:
A. Unique TensorFlower 2019-08-05 11:59:36 -07:00 committed by TensorFlower Gardener
parent e9174365e6
commit 5222898b4c
2 changed files with 5 additions and 2 deletions

View File

@ -1287,6 +1287,7 @@ cc_test(
name = "lstm_test",
size = "small",
srcs = ["lstm_test.cc"],
tags = ["tflite_nnapi"],
deps = [
":builtin_ops",
":test_main",

View File

@ -1758,7 +1758,8 @@ TEST_F(NoCifgPeepholeProjectionNoClippingLayerNormLstmTest,
0.00734616, 0.161793, 0.0560238, // seq 2
}};
VerifyGoldens(lstm_input_, lstm_golden_output_, &layer_norm_lstm);
VerifyGoldens(lstm_input_, lstm_golden_output_, &layer_norm_lstm,
/*tolerance=*/0.0010907);
}
TEST_F(NoCifgPeepholeProjectionNoClippingLayerNormLstmTest,
@ -2006,7 +2007,8 @@ TEST_F(CifgPeepholeProjectionNoClippingLayerNormLstmTest,
-0.0103605557, 0.172605693, 0.0728750974, // seq 2
}};
VerifyGoldens(lstm_input_, lstm_golden_output_, &layer_norm_lstm);
VerifyGoldens(lstm_input_, lstm_golden_output_, &layer_norm_lstm,
/*tolerance=*/0.000902065);
}
TEST_F(CifgPeepholeProjectionNoClippingLayerNormLstmTest,