Commit 5e92f10f authored by Davis King's avatar Davis King

Fixed a compile time bug.

parent a7ea7d00
...@@ -371,8 +371,8 @@ namespace dlib ...@@ -371,8 +371,8 @@ namespace dlib
const tensor& get_output() const { return l.private_get_output(); } const tensor& get_output() const { return l.private_get_output(); }
tensor& get_gradient_input() { return l.private_get_gradient_input(); } tensor& get_gradient_input() { return l.private_get_gradient_input(); }
const subnet_wrapper<typename T::subnet_type>& subnet() const { subnetwork; } const subnet_wrapper<typename T::subnet_type,false>& subnet() const { return subnetwork; }
subnet_wrapper<typename T::subnet_type>& subnet() { subnetwork; } subnet_wrapper<typename T::subnet_type,false>& subnet() { return subnetwork; }
private: private:
T& l; T& l;
...@@ -395,12 +395,12 @@ namespace dlib ...@@ -395,12 +395,12 @@ namespace dlib
const tensor& get_output() const { return l.get_output(); } const tensor& get_output() const { return l.get_output(); }
tensor& get_gradient_input() { return l.get_gradient_input(); } tensor& get_gradient_input() { return l.get_gradient_input(); }
const subnet_wrapper<typename T::subnet_type>& subnet() const { subnetwork; } const subnet_wrapper<typename T::subnet_type,false>& subnet() const { return subnetwork; }
subnet_wrapper<typename T::subnet_type>& subnet() { subnetwork; } subnet_wrapper<typename T::subnet_type,false>& subnet() { return subnetwork; }
private: private:
T& l; T& l;
subnet_wrapper<typename T::subnet_type> subnetwork; subnet_wrapper<typename T::subnet_type,false> subnetwork;
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment