Commit 7c65c8d2 authored by Davis King's avatar Davis King

removed cruft

parent 7e12a32b
...@@ -100,43 +100,6 @@ namespace dlib ...@@ -100,43 +100,6 @@ namespace dlib
template <typename SUBNET> template <typename SUBNET>
using loss_binary_hinge = add_loss_layer<loss_binary_hinge_, SUBNET>; using loss_binary_hinge = add_loss_layer<loss_binary_hinge_, SUBNET>;
// ----------------------------------------------------------------------------------------
class loss_no_label_
{
public:
const static unsigned int sample_expansion_factor = 1;
template <
typename SUBNET
>
double compute_loss (
const tensor& input_tensor,
SUBNET& sub
) const
{
return 0;
}
friend void serialize(const loss_no_label_& , std::ostream& out)
{
serialize("loss_no_label_", out);
}
friend void deserialize(loss_no_label_& , std::istream& in)
{
std::string version;
deserialize(version, in);
if (version != "loss_no_label_")
throw serialization_error("Unexpected version found while deserializing dlib::loss_no_label_.");
}
};
template <typename SUBNET>
using loss_no_label = add_loss_layer<loss_no_label_, SUBNET>;
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
} }
......
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