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
This commit is contained in:
parent
607da2b8d6
commit
1ce470efe7
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user