message: Fixes added to remove CorrectTensorEndianness in AllocateTensors
diff: @@ -237,28 +237,6 @@ TfLiteStatus MicroInterpreter::AllocateTensors() {
  context_helper_.SetTfLiteEvalTensors(eval_tensors_);
  context_.tensors_size = subgraph_->tensors()->size();
  - // If the system is big endian then convert weights from the flatbuffer from
  - // little to big endian on startup so that it does not need to be done during
  - // inference.
  - // NOTE: This requires that the flatbuffer is held in memory which can be
  - // modified by this process.
  - if (!FLATBUFFERS_LITTLEENDIAN) {
  - for (size_t t = 0; t < subgraph_->tensors()->size(); ++t) {
  - if (auto* buffer =
  - (*model_->buffers())[subgraph_->tensors()->Get(t)->buffer()]) {
  - // If we've found a buffer, does it have any data?
  - if (auto* array = buffer->data()) {
  - // If it has any data, is the data size larger than zero?
  - if (array->size()) {
  - // Update the endianness of the corresponding eval tensor since that
  - // struct holds the buffer used at inference time.
  - CorrectTensorEndianness(&eval_tensors_[t]);
  - }
  - }
  - }
  - }
  - }
  -
  // Only allow AllocatePersistentBuffer in Init stage.
  context_.AllocatePersistentBuffer = context_helper_.AllocatePersistentBuffer;
  context_.RequestScratchBufferInArena = nullptr;
  