"...models/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "c7c2085ec686ccc55e1df85736b240b2405d1179"
Commit b355951d authored by Davis King's avatar Davis King
Browse files

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