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

Function TotalBufferBytes

tensorflow/compiler/aot/codegen.cc:94–99  ·  view source on GitHub ↗

Returns the sum of the size of each buffer in `buffer_infos`.

Source from the content-addressed store, hash-verified

92
93// Returns the sum of the size of each buffer in `buffer_infos`.
94size_t TotalBufferBytes(const std::vector<BufferInfo>& buffer_infos) {
95 return std::accumulate(buffer_infos.begin(), buffer_infos.end(), size_t{0},
96 [](size_t size, const BufferInfo& buffer_info) {
97 return size + buffer_info.size();
98 });
99}
100
101// Returns a vector of BufferInfo instances in `buffer_infos` that are entry
102// parameter buffers.

Callers 1

GenerateHeaderFunction · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected