Fix incorrect xml blocks for leaky_relu and smelu

This commit is contained in:
Davis King 2022-12-09 08:10:25 -05:00
parent 2efc172c46
commit f932f33b10

View File

@ -3177,8 +3177,7 @@ namespace dlib
friend void to_xml(const leaky_relu_& item, std::ostream& out) friend void to_xml(const leaky_relu_& item, std::ostream& out)
{ {
out << "<leaky_relu alpha='"<< item.alpha << "'>\n"; out << "<leaky_relu alpha='"<< item.alpha << "'/>\n";
out << "<leaky_relu/>\n";
} }
private: private:
@ -3695,8 +3694,7 @@ namespace dlib
friend void to_xml(const smelu_& item, std::ostream& out) friend void to_xml(const smelu_& item, std::ostream& out)
{ {
out << "<smelu beta='"<< item.beta << "'>\n"; out << "<smelu beta='"<< item.beta << "'/>\n";
out << "<smelu/>\n";
} }
private: private: