diff options
author | Sanjoy Das <sanjoy@google.com> | 2018-07-31 17:21:26 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-07-31 17:26:19 -0700 |
commit | 182a00ee781017932443bacb475af7acc4a56d5a (patch) | |
tree | ec24c5cc7e424642bf6772b4d46f7a08ac31dc88 /tensorflow/compiler/aot | |
parent | 64f191cdc0121bbcb322c3b11b160d638c2f4af9 (diff) |
Automated rollback of commit fba2d773f45f10882aa475ac75cbf9884995d626
PiperOrigin-RevId: 206855848
Diffstat (limited to 'tensorflow/compiler/aot')
-rw-r--r-- | tensorflow/compiler/aot/runtime.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tensorflow/compiler/aot/runtime.cc b/tensorflow/compiler/aot/runtime.cc index 475eebaa35..5e74079fc1 100644 --- a/tensorflow/compiler/aot/runtime.cc +++ b/tensorflow/compiler/aot/runtime.cc @@ -85,9 +85,7 @@ void* MallocContiguousBuffers(const intptr_t* sizes, size_t n, void** bufs, } uintptr_t pos = reinterpret_cast<uintptr_t>(contiguous); for (size_t i = 0; i < n; ++i) { - if (sizes[i] < 0) { - // bufs[i] is either a constant, an entry parameter or a thread local - // allocation. + if (sizes[i] == -1) { bufs[i] = nullptr; } else { bufs[i] = reinterpret_cast<void*>(pos); |