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
c1bc27c5
Commit
c1bc27c5
authored
Apr 03, 2017
by
Davis King
Browse files
Added support for cuDNN 6
parent
5d2edfe8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
dlib/dnn/cudnn_dlibapi.cpp
dlib/dnn/cudnn_dlibapi.cpp
+11
-0
No files found.
dlib/dnn/cudnn_dlibapi.cpp
View file @
c1bc27c5
...
...
@@ -820,6 +820,16 @@ namespace dlib
filters
.
nc
()));
CHECK_CUDNN
(
cudnnCreateConvolutionDescriptor
((
cudnnConvolutionDescriptor_t
*
)
&
conv_handle
));
#if CUDNN_MAJOR >= 6
CHECK_CUDNN
(
cudnnSetConvolution2dDescriptor
((
cudnnConvolutionDescriptor_t
)
conv_handle
,
padding_y
,
// vertical padding
padding_x
,
// horizontal padding
stride_y
,
stride_x
,
1
,
1
,
// must be 1,1
CUDNN_CROSS_CORRELATION
,
CUDNN_DATA_FLOAT
));
// could also be CUDNN_CONVOLUTION
#else
CHECK_CUDNN
(
cudnnSetConvolution2dDescriptor
((
cudnnConvolutionDescriptor_t
)
conv_handle
,
padding_y
,
// vertical padding
padding_x
,
// horizontal padding
...
...
@@ -827,6 +837,7 @@ namespace dlib
stride_x
,
1
,
1
,
// must be 1,1
CUDNN_CROSS_CORRELATION
));
// could also be CUDNN_CONVOLUTION
#endif
CHECK_CUDNN
(
cudnnGetConvolution2dForwardOutputDim
(
(
const
cudnnConvolutionDescriptor_t
)
conv_handle
,
...
...
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