| 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 | { |
no test coverage detected