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

Function MutableBlock

paddle/fluid/framework/program_desc.h:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 BlockDesc *AppendBlock(const BlockDesc &parent);
47
48 BlockDesc *MutableBlock(size_t idx) {
49 if (idx == static_cast<size_t>(kNoneBlockIndex)) {
50 return nullptr;
51 } else {
52 return blocks_[idx].get();
53 }
54 }
55
56 const BlockDesc &Block(size_t idx) const { return *blocks_[idx]; }
57

Callers 3

ProgramDescMethod · 0.85
SetFeedHolderNameMethod · 0.85
SetFetchHolderNameMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected