MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle-Lite / ClearBlocks

Method ClearBlocks

lite/model_parser/naive_buffer/program_desc.cc:23–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21size_t ProgramDesc::BlocksSize() const { return GetBlockListBuilder().size(); }
22
23void ProgramDesc::ClearBlocks() { GetMutableBlockListBuilder()->Clear(); }
24
25template <>
26proto::BlockDesc* ProgramDesc::GetBlock<proto::BlockDesc>(int32_t idx) {

Callers 4

LoadModelPbFunction · 0.45
LoadModelNaiveFunction · 0.45
LoadModelNaiveFromMemoryFunction · 0.45
LoadModelNaiveV0FromFileFunction · 0.45

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected