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
3406a290
"docs/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "58d627aed61ab1780667526da2cf1c1aa27948ad"
Commit
3406a290
authored
Nov 03, 2015
by
Davis King
Browse files
Minor tweaks to avoid compiler warnings
parent
0145ca8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
dlib/dnn/cudnn_dlibapi.cpp
dlib/dnn/cudnn_dlibapi.cpp
+2
-2
dlib/dnn/tensor.h
dlib/dnn/tensor.h
+1
-1
No files found.
dlib/dnn/cudnn_dlibapi.cpp
View file @
3406a290
...
...
@@ -38,11 +38,11 @@ namespace dlib
// ------------------------------------------------------------------------------------
static
const
cudnnTensorDescriptor_t
descriptor
(
const
tensor
&
t
)
static
cudnnTensorDescriptor_t
descriptor
(
const
tensor
&
t
)
{
return
(
const
cudnnTensorDescriptor_t
)
t
.
get_cudnn_tensor_descriptor
().
get_handle
();
}
static
const
cudnnTensorDescriptor_t
descriptor
(
const
tensor_descriptor
&
t
)
static
cudnnTensorDescriptor_t
descriptor
(
const
tensor_descriptor
&
t
)
{
return
(
const
cudnnTensorDescriptor_t
)
t
.
get_handle
();
}
...
...
dlib/dnn/tensor.h
View file @
3406a290
...
...
@@ -219,7 +219,7 @@ namespace dlib
<<
"
\n\t
nr: "
<<
nr
<<
"
\n\t
nc: "
<<
nc
);
DLIB_ASSERT
(
nr
*
nc
==
t
.
size
()
,
DLIB_ASSERT
(
nr
*
nc
==
(
long
)
t
.
size
()
,
"
\t
const matrix_exp mat(tensor, nr, nc)"
<<
"
\n\t
The sizes don't match up."
<<
"
\n\t
nr*nc: "
<<
nr
*
nc
...
...
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