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

Function PDNodeName

paddle/fluid/framework/ir/graph_pattern_detector.h:442–447  ·  view source on GitHub ↗

Generate a unique PDNode's name with name_scope and id. The format is {name_scope}/{repr}/{id}/{name}

Source from the content-addressed store, hash-verified

440// Generate a unique PDNode's name with name_scope and id.
441// The format is {name_scope}/{repr}/{id}/{name}
442static std::string PDNodeName(const std::string& name_scope,
443 const std::string& repr,
444 size_t id,
445 const std::string& name) {
446 return string::Sprintf("%s/%s/%d/%s", name_scope, repr, id, name);
447}
448// Generate a unique PDNode's name.
449// The format is {name_scope}/{repr}/{id}
450static std::string PDNodeName(const std::string& name_scope,

Callers 15

FusedFeedForwardFwdMethod · 0.85
FusedFeedForwardBwdMethod · 0.85
ApplyImplMethod · 0.85
CreateVarNodeFunction · 0.85
ApplyImplMethod · 0.85
BuildFusionFunction · 0.85
BuildFusionMethod · 0.85
ApplyImplMethod · 0.85
ForwardHandlerHelperMethod · 0.85
BackwardHandlerHelperMethod · 0.85
FuseLinearFwdMethod · 0.85
FuseLinearActFwdMethod · 0.85

Calls 3

SprintfFunction · 0.85
InstanceFunction · 0.85
IncCounterMethod · 0.80

Tested by

no test coverage detected