Added missing assert.

This commit is contained in:
Davis King 2012-05-05 23:32:41 -04:00
parent 0c6b95ef76
commit b355951dab
1 changed files with 7 additions and 1 deletions

View File

@ -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);