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

Function ExtractEntryParamBufferInfos

tensorflow/compiler/aot/codegen.cc:103–111  ·  view source on GitHub ↗

Returns a vector of BufferInfo instances in `buffer_infos` that are entry parameter buffers.

Source from the content-addressed store, hash-verified

101// Returns a vector of BufferInfo instances in `buffer_infos` that are entry
102// parameter buffers.
103std::vector<BufferInfo> ExtractEntryParamBufferInfos(
104 const std::vector<BufferInfo>& buffer_infos) {
105 std::vector<BufferInfo> result;
106 std::copy_if(buffer_infos.begin(), buffer_infos.end(),
107 std::back_inserter(result), [](const BufferInfo& buffer_info) {
108 return buffer_info.is_entry_parameter();
109 });
110 return result;
111}
112
113// Returns a vector of BufferInfo instances in `buffer_infos` that are temp
114// buffers.

Callers 1

GenerateHeaderFunction · 0.85

Calls 3

is_entry_parameterMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected