MCPcopy Create free account
hub / github.com/LBANN/lbann / get_weights

Method get_weights

src/models/model.cpp:396–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394}
395
396std::vector<weights*> model::get_weights()
397{
398 std::vector<weights*> weights_list;
399 for (const auto& w : m_weights) {
400 weights_list.push_back(w.get());
401 }
402 return weights_list;
403}
404
405std::vector<weights const*> model::get_weights() const
406{

Callers 15

serialize_to_onnxMethod · 0.95
write_protoMethod · 0.95
restore_model_weightsFunction · 0.45
exchange_modelsMethod · 0.45
exchange_modelsMethod · 0.45
exchange_modelsMethod · 0.45
load_weights_from_filesFunction · 0.45
setupMethod · 0.45
on_batch_beginMethod · 0.45
perturbMethod · 0.45
dump_networkFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected