Fix msan failure.

PiperOrigin-RevId: 284251368
Change-Id: I8e04e6340b1d82e467a3366aa04b68a7b43e1cb1
This commit is contained in:
Yunlu Li 2019-12-06 13:34:26 -08:00 committed by TensorFlower Gardener
parent 00c6bb2b7c
commit c8e94d4a6e

View File

@ -106,7 +106,7 @@ TEST(Quantization, TestQuantizationFree) {
}
TEST(Sparsity, TestSparsityFree) {
TfLiteTensor t;
TfLiteTensor t = {};
// Set these values, otherwise TfLiteTensorFree has uninitialized values.
t.allocation_type = kTfLiteArenaRw;
t.dims = nullptr;