MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / getNumPaddingBytes

Function getNumPaddingBytes

tensorflow/lite/delegates/nnapi/nnapi_delegate.cc:291–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289constexpr size_t kDefaultByteAlignmentForNNAPI = 16;
290
291static size_t getNumPaddingBytes(size_t byte_size) {
292 size_t num_padding_bytes = 0;
293 if (byte_size % kDefaultByteAlignmentForNNAPI) {
294 num_padding_bytes = kDefaultByteAlignmentForNNAPI -
295 (byte_size % kDefaultByteAlignmentForNNAPI);
296 }
297 return num_padding_bytes;
298}
299
300std::string SimpleJoin(const std::vector<const char*>& elements,
301 const char* separator) {

Callers 2

InvokeMethod · 0.85
BuildGraphMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected