MCPcopy Create free account
hub / github.com/apache/singa / GetParamValues

Method GetParamValues

src/model/feed_forward_net.cc:55–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 return names;
54}
55const vector<Tensor> FeedForwardNet::GetParamValues() const {
56 vector<Tensor> values;
57 for (auto layer : layers_)
58 for (const auto value : layer->param_values()) values.push_back(value);
59 return values;
60}
61
62const vector<ParamSpec> FeedForwardNet::GetParamSpecs() const {
63 vector<ParamSpec> specs;

Callers 1

CheckpointFunction · 0.80

Calls 1

param_valuesMethod · 0.45

Tested by

no test coverage detected