Skip to content

Commit

Permalink
Contradicting comments removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ANSHUMAN TRIPATHY authored and ANSHUMAN TRIPATHY committed Aug 7, 2019
1 parent 0a25f06 commit 7375586
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tensorflow/lite/allocation.cc
Expand Up @@ -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, decltype(&fclose)> 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
Expand Down

0 comments on commit 7375586

Please sign in to comment.