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

Function IsCorrectHeader

mlmodel/tests/MILBlob/StorageWriterTests.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace {
26
27[[nodiscard]] bool IsCorrectHeader(const std::string& filePath, uint32_t count)
28{
29 storage_header header;
30 TestUtil::ReadData(filePath, header, 0);
31 return header.count == count && header.version == uint32_t(2);
32}
33
34template <typename T>
35[[nodiscard]] bool IsCorrectMetadataForSubByte(const std::string& filePath,

Callers 1

Calls 1

ReadDataFunction · 0.85

Tested by

no test coverage detected