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

Method ProgramDesc

paddle/fluid/framework/program_desc.cc:63–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63ProgramDesc::ProgramDesc() {
64 SetVersion(kCurProgramVersion);
65 auto *block = desc_.mutable_blocks()->Add();
66 block->set_idx(kRootBlockIndex);
67 block->set_parent_idx(kNoneBlockIndex);
68 blocks_.emplace_back(new BlockDesc(this, block));
69}
70
71ProgramDesc::ProgramDesc(const ProgramDesc &o) {
72 desc_ = o.desc_;

Callers 15

load_program_textMethod · 0.45
_apply_single_implMethod · 0.45
load_program_textFunction · 0.45
compileMethod · 0.45
_apply_passFunction · 0.45
to_programMethod · 0.45
__init__Method · 0.45
cloneMethod · 0.45
_inference_optimizeMethod · 0.45
_remove_training_infoMethod · 0.45
parse_from_stringMethod · 0.45
_load_program_descFunction · 0.45

Calls 15

PADDLE_GET_CONSTFunction · 0.85
MutableBlockFunction · 0.85
ConvertProgramFunction · 0.85
set_idxMethod · 0.80
AllOpsMethod · 0.80
GetAttrTypeMethod · 0.80
GetBlockAttrIdMethod · 0.80
GetBlocksAttrIdsMethod · 0.80
SetBlocksAttrMethod · 0.80
SetVarAttrMethod · 0.80
SetVarsAttrMethod · 0.80
transformFunction · 0.50

Tested by 15

test_sum_opMethod · 0.36
test_mul_opMethod · 0.36
test_op_descMethod · 0.36
test_instanceMethod · 0.36
test_append_blockMethod · 0.36
test_shapeMethod · 0.36
test_multiple_shapeMethod · 0.36
test_dtypeMethod · 0.36
test_multiple_dtypeMethod · 0.36
test_add_varMethod · 0.36