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

Function bitsToBytesCeil

mlmodel/src/Validation/QuantizationValidationUtils.hpp:19–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18namespace CoreML {
19 inline uint64_t bitsToBytesCeil(uint64_t nBits){
20 return (nBits + 7) / 8;
21 }
22 bool hasSufficientBytesInQuantizedWeightParam(const CoreML::Specification::WeightParams& weight,
23 const uint64_t units);
24 bool hasValidQuantizationParams(const CoreML::Specification::WeightParams& weight, const int expectSize);

Calls

no outgoing calls

Tested by

no test coverage detected