tensorflow/lite/model_builder.cc
// Loads a model from `filename`. If `mmap_file` is true then use mmap,
// otherwise make a copy of the model in a buffer.
Loads a model from `filename`. If `mmap_file` is true then use mmap,
otherwise make a copy of the model in a buffer.
Loads a model from ` filename ` . If ` mmap_file ` is true then use mmap otherwise make a copy of the model in a buffer .
std::unique_ptr<Allocation> GetAllocationFromFile(
    const char* filename, ErrorReporter* error_reporter) {
  std::unique_ptr<Allocation> allocation;
  if (MMAPAllocation::IsSupported()) {
    allocation.reset(new MMAPAllocation(filename, error_reporter));
  } else {
    allocation.reset(new FileCopyAllocation(filename, error_reporter));
  }
  return allocation;
}
std :: unique_ptr < Allocation > GetAllocationFromFile ( const char * filename , ErrorReporter * error_reporter ) { std :: unique_ptr < Allocation > allocation ; if ( MMAPAllocation :: IsSupported ( ) ) { allocation . reset ( new MMAPAllocation ( filename , error_reporter ) ) ; } else { allocation . reset ( new FileCopyAllocation ( filename , error_reporter ) ) ; } return allocation ; }
Loads a model from `filename`.
Loads a model from ` filename ` .