diff options
author | 2018-08-06 08:44:13 -0700 | |
---|---|---|
committer | 2018-08-06 08:49:42 -0700 | |
commit | e01ad771da72a9f1aa328b0edd928573f08a237b (patch) | |
tree | c5fb8f700974042394966a4093f145f6f99b91b7 /tensorflow/contrib/lite/allocation.cc | |
parent | 7304afd4f2b782da407166797ee1364cbcfdb8b4 (diff) |
Add support for interpreting tflite flatbuffers in micro builds.
PiperOrigin-RevId: 207550881
Diffstat (limited to 'tensorflow/contrib/lite/allocation.cc')
-rw-r--r-- | tensorflow/contrib/lite/allocation.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/contrib/lite/allocation.cc b/tensorflow/contrib/lite/allocation.cc index 6d834f71c0..8946261814 100644 --- a/tensorflow/contrib/lite/allocation.cc +++ b/tensorflow/contrib/lite/allocation.cc @@ -28,6 +28,7 @@ limitations under the License. namespace tflite { +#ifndef TFLITE_MCU FileCopyAllocation::FileCopyAllocation(const char* filename, ErrorReporter* error_reporter) : Allocation(error_reporter) { @@ -71,6 +72,7 @@ const void* FileCopyAllocation::base() const { return copied_buffer_.get(); } size_t FileCopyAllocation::bytes() const { return buffer_size_bytes_; } bool FileCopyAllocation::valid() const { return copied_buffer_ != nullptr; } +#endif MemoryAllocation::MemoryAllocation(const void* ptr, size_t num_bytes, ErrorReporter* error_reporter) |