mirror of https://github.com/davisking/dlib.git
Added missing assert.
This commit is contained in:
parent
0c6b95ef76
commit
b355951dab
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue