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
7481ef1e
Commit
7481ef1e
authored
Feb 03, 2018
by
Davis King
Browse files
Fixed problems in python doc generation.
parent
0e30960b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
tools/python/src/dlib.cpp
tools/python/src/dlib.cpp
+12
-2
No files found.
tools/python/src/dlib.cpp
View file @
7481ef1e
...
...
@@ -67,13 +67,22 @@ PYBIND11_MODULE(dlib, m)
// Note that the order here matters. We need to do the basic types first. If we don't
// then what happens is the documentation created by sphinx will use horrible big
// template names to refer to C++ objects rather than the python names python users
// will expect. For instance, if bind_basic_types() isn't called early then when
// routines take a std::vector<double>, rather than saying dlib.array in the python
// docs it will say "std::vector<double, std::allocator<double> >" which is awful and
// confusing to python users.
//
// So when adding new things always add them to the end of the list.
bind_matrix
(
m
);
bind_vector
(
m
);
bind_svm_c_trainer
(
m
);
bind_decision_functions
(
m
);
bind_basic_types
(
m
);
bind_other
(
m
);
bind_svm_rank_trainer
(
m
);
bind_decision_functions
(
m
);
bind_cca
(
m
);
bind_sequence_segmenter
(
m
);
bind_svm_struct
(
m
);
...
...
@@ -86,6 +95,7 @@ PYBIND11_MODULE(dlib, m)
bind_cnn_face_detection
(
m
);
bind_global_optimization
(
m
);
bind_numpy_returns
(
m
);
bind_svm_c_trainer
(
m
);
#ifndef DLIB_NO_GUI_SUPPORT
bind_gui
(
m
);
#endif
...
...
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