From 1ce470efe7fb2da502a8a2cfaad677db07298124 Mon Sep 17 00:00:00 2001 From: Tiezhen WANG Date: Tue, 21 Jan 2020 19:35:10 -0800 Subject: [PATCH] TFL: Add a TODO for b/145340303 This CL will not solve the issue, just marking where work needs to be done, before a decision has been made on how to move forward. PiperOrigin-RevId: 290874652 Change-Id: I47775ead0d76259b85bbe45942bc4afba3bcca9a --- tensorflow/lite/c/common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tensorflow/lite/c/common.c b/tensorflow/lite/c/common.c index 0b17c049e93..1721e75d7ce 100644 --- a/tensorflow/lite/c/common.c +++ b/tensorflow/lite/c/common.c @@ -169,6 +169,7 @@ void TfLiteTensorRealloc(size_t num_bytes, TfLiteTensor* tensor) { if (tensor->allocation_type != kTfLiteDynamic) { return; } + // TODO(b/145340303): Tensor data should be aligned. if (!tensor->data.raw) { tensor->data.raw = malloc(num_bytes); } else if (num_bytes > tensor->bytes) {