From 540f47409e3ec7bc5b786effcfcf1b856092d2ae Mon Sep 17 00:00:00 2001 From: Gilles Rochefort Date: Sat, 21 Oct 2017 03:44:00 +0200 Subject: [PATCH] Missing interfaces in add_prev for compatibility with mmod loss. (#901) --- dlib/dnn/layers.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlib/dnn/layers.h b/dlib/dnn/layers.h index b61dad273..2e4515d8a 100644 --- a/dlib/dnn/layers.h +++ b/dlib/dnn/layers.h @@ -2078,6 +2078,9 @@ namespace dlib const tensor& get_layer_params() const { return params; } tensor& get_layer_params() { return params; } + inline dpoint map_input_to_output (const dpoint& p) const { return p; } + inline dpoint map_output_to_input (const dpoint& p) const { return p; } + friend void serialize(const add_prev_& , std::ostream& out) { serialize("add_prev_", out);