mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Fix incorrect xml blocks for leaky_relu and smelu
This commit is contained in:
parent
2efc172c46
commit
f932f33b10
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user