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

Method LocalVarNames

paddle/fluid/framework/scope.cc:132–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132std::vector<std::string> Scope::LocalVarNames() const {
133 std::vector<std::string> known_vars;
134 {
135 SCOPE_VARS_READER_LOCK
136 known_vars.reserve(this->vars_.size());
137 for (auto& p : vars_) {
138 known_vars.emplace_back(p.first);
139 }
140 }
141 return known_vars;
142}
143
144std::vector<Variable*> Scope::LocalVars() {
145 std::vector<Variable*> known_vars;

Callers 15

TrainFilesMethod · 0.80
GenScopeTreeDebugInfoFunction · 0.80
ConvertWeightsDataMethod · 0.80
RunImplMethod · 0.80
CopyParamsToGpuMethod · 0.80
ClearExtraParamsMethod · 0.80
LoadParametersMethod · 0.80
~AnalysisPredictorMethod · 0.80
CollectTensorArraysMethod · 0.80
CollectNoTensorVarsMethod · 0.80

Calls 2

sizeMethod · 0.45
emplace_backMethod · 0.45

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64