MCPcopy Create free account
hub / github.com/davisking/dlib / attribute

Method attribute

tools/convert_dlib_nets_to_caffe/main.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 // the most recent layer with tag_id==skip_id rather than its immediate predecessor.
32
33 double attribute (const string& key) const
34 {
35 auto i = attributes.find(key);
36 if (i != attributes.end())
37 return i->second;
38 else
39 throw dlib::error("Layer doesn't have the requested attribute '" + key + "'.");
40 }
41
42 string caffe_layer_name() const
43 {

Calls 3

errorClass · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected