Commit b355951d authored by Davis King's avatar Davis King

Added missing assert.

parent 0c6b95ef
......@@ -132,8 +132,14 @@ namespace dlib
const std::vector<label_type>& labels
) const
{
// TODO
// make sure requires clause is not broken
DLIB_ASSERT(is_graph_labeling_problem(samples, labels),
"\t void structural_graph_labeling_trainer::train()"
<< "\n\t samples.size(): " << samples.size()
<< "\n\t labels.size(): " << labels.size()
<< "\n\t this: " << this
);
structural_svm_graph_labeling_problem<graph_type> prob(samples, labels, num_threads);
......
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