diff options
author | Jared Duke <jdduke@google.com> | 2018-08-29 08:58:27 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-29 09:07:49 -0700 |
commit | 97fb9a9c7c72c405a790eea698a91654d5184fed (patch) | |
tree | de458ca70534a20174fc0fc93465da416e0f9d20 /tensorflow/contrib/lite/mmap_allocation.cc | |
parent | 0f443619fb13fcd5c34cb7d8c867b64339afdcfc (diff) |
Disable rtti for (most) TFLite targets on Android
PiperOrigin-RevId: 210729533
Diffstat (limited to 'tensorflow/contrib/lite/mmap_allocation.cc')
-rw-r--r-- | tensorflow/contrib/lite/mmap_allocation.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/contrib/lite/mmap_allocation.cc b/tensorflow/contrib/lite/mmap_allocation.cc index fa9a3cd1d8..fbe1bba864 100644 --- a/tensorflow/contrib/lite/mmap_allocation.cc +++ b/tensorflow/contrib/lite/mmap_allocation.cc @@ -56,6 +56,8 @@ size_t MMAPAllocation::bytes() const { return buffer_size_bytes_; } bool MMAPAllocation::valid() const { return mmapped_buffer_ != MAP_FAILED; } +Allocation::Type MMAPAllocation::type() const { return Type::kMMAP; } + bool MMAPAllocation::IsSupported() { return true; } } // namespace tflite |