MCPcopy Create free account
hub / github.com/apple/coremltools / ReadFile

Function ReadFile

deps/protobuf/benchmarks/cpp/cpp_benchmark.cc:194–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192};
193
194std::string ReadFile(const std::string& name) {
195 std::ifstream file(name.c_str());
196 GOOGLE_CHECK(file.is_open()) << "Couldn't find file '" << name <<
197 "', please make sure you are running "
198 "this command from the benchmarks/ "
199 "directory.\n";
200 return std::string((std::istreambuf_iterator<char>(file)),
201 std::istreambuf_iterator<char>());
202}
203
204template <class T>
205void RegisterBenchmarksForType(const BenchmarkDataset& dataset) {

Callers 2

mainFunction · 0.70
CommunicateMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected