diff --git a/tensorflow/lite/allocation.cc b/tensorflow/lite/allocation.cc index ed5d019949f..16300be87c5 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