Missing interfaces in add_prev for compatibility with mmod loss. (#901)

This commit is contained in:
Gilles Rochefort 2017-10-21 03:44:00 +02:00 committed by Davis E. King
parent 6d343f93da
commit 540f47409e
1 changed files with 3 additions and 0 deletions

View File

@ -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);