From 7375586f215385d1c29a6a9538ae658f5ae7b936 Mon Sep 17 00:00:00 2001 From: ANSHUMAN TRIPATHY Date: Sun, 31 Mar 2019 21:36:16 +0530 Subject: [PATCH] Contradicting comments removed --- tensorflow/lite/allocation.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tensorflow/lite/allocation.cc b/tensorflow/lite/allocation.cc index ed5d019949f752..16300be87c5c8e 100644 --- a/tensorflow/lite/allocation.cc +++ b/tensorflow/lite/allocation.cc @@ -34,15 +34,11 @@ namespace tflite { FileCopyAllocation::FileCopyAllocation(const char* filename, ErrorReporter* error_reporter) : Allocation(error_reporter, Allocation::Type::kFileCopy) { - // Obtain the file size, using an alternative method that is does not - // require fstat for more compatibility. std::unique_ptr file(fopen(filename, "rb"), fclose); if (!file) { error_reporter_->Report("Could not open '%s'.", filename); return; } - // TODO(ahentz): Why did you think using fseek here was better for finding - // the size? struct stat sb; // support usage of msvc's posix-like fileno symbol