Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
3406a290
Commit
3406a290
authored
Nov 04, 2015
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor tweaks to avoid compiler warnings
parent
0145ca8a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
cudnn_dlibapi.cpp
dlib/dnn/cudnn_dlibapi.cpp
+2
-2
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
c
onst
c
udnnTensorDescriptor_t
descriptor
(
const
tensor
&
t
)
static
cudnnTensorDescriptor_t
descriptor
(
const
tensor
&
t
)
{
return
(
const
cudnnTensorDescriptor_t
)
t
.
get_cudnn_tensor_descriptor
().
get_handle
();
}
static
c
onst
c
udnnTensorDescriptor_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