MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / HasSubBlock

Function HasSubBlock

paddle/fluid/framework/prune.cc:137–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137bool HasSubBlock(const proto::OpDesc& op_desc) {
138 return GetSubBlockIndex(op_desc) > 0;
139}
140
141bool HasSubBlocks(const proto::OpDesc& op_desc) {
142 // ``blocks_idx_size() == 0`` indicates no sub blocks.

Callers 4

IsSubBlockDependentFunction · 0.85
prune_implFunction · 0.85
PruneFunction · 0.85
PruneBackwardFunction · 0.85

Calls 1

GetSubBlockIndexFunction · 0.85

Tested by

no test coverage detected