Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
b355951d
Commit
b355951d
authored
May 05, 2012
by
Davis King
Browse files
Added missing assert.
parent
0c6b95ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
dlib/svm/structural_graph_labeling_trainer.h
dlib/svm/structural_graph_labeling_trainer.h
+7
-1
No files found.
dlib/svm/structural_graph_labeling_trainer.h
View file @
b355951d
...
@@ -132,8 +132,14 @@ namespace dlib
...
@@ -132,8 +132,14 @@ namespace dlib
const
std
::
vector
<
label_type
>&
labels
const
std
::
vector
<
label_type
>&
labels
)
const
)
const
{
{
// TODO
// make sure requires clause is not broken
// 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
);
structural_svm_graph_labeling_problem
<
graph_type
>
prob
(
samples
,
labels
,
num_threads
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment