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
fa39e518
Commit
fa39e518
authored
Feb 10, 2018
by
Davis King
Browse files
Added a __time_compiled__ field to the python API.
parent
1578e277
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tools/python/src/dlib.cpp
tools/python/src/dlib.cpp
+2
-0
No files found.
tools/python/src/dlib.cpp
View file @
fa39e518
...
...
@@ -3,6 +3,7 @@
#include <pybind11/pybind11.h>
#include <dlib/simd.h>
#include <string>
namespace
py
=
pybind11
;
...
...
@@ -38,6 +39,7 @@ PYBIND11_MODULE(dlib, m)
#define DLIB_QUOTE_STRING(x) DLIB_QUOTE_STRING2(x)
#define DLIB_QUOTE_STRING2(x) #x
m
.
attr
(
"__version__"
)
=
DLIB_QUOTE_STRING
(
DLIB_VERSION
);
m
.
attr
(
"__time_compiled__"
)
=
std
::
string
(
__DATE__
)
+
" "
+
std
::
string
(
__TIME__
);
#ifdef DLIB_USE_CUDA
m
.
attr
(
"DLIB_USE_CUDA"
)
=
true
;
...
...
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