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
4a9cccb4
Commit
4a9cccb4
authored
Oct 01, 2016
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes to avoid warnings in visual studio 2015
parent
5582530b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
array2d_kernel.h
dlib/array2d/array2d_kernel.h
+1
-1
cuda_dlib.cu
dlib/dnn/cuda_dlib.cu
+1
-1
cuda_utils.h
dlib/dnn/cuda_utils.h
+2
-2
tensor.h
dlib/dnn/tensor.h
+1
-1
matrix.h
dlib/matrix/matrix.h
+2
-2
No files found.
dlib/array2d/array2d_kernel.h
View file @
4a9cccb4
...
...
@@ -72,7 +72,7 @@ namespace dlib
- (*this)[x] == data[x]
!*/
friend
class
array2d
;
friend
class
array2d
<
T
,
mem_manager
>
;
friend
class
row_helper
;
public
:
...
...
dlib/dnn/cuda_dlib.cu
View file @
4a9cccb4
...
...
@@ -54,7 +54,7 @@ namespace dlib
{
int can_access;
CHECK_CUDA(cudaDeviceCanAccessPeer(&can_access, device_id, peer_device_id));
return can_access;
return can_access
!= 0
;
}
bool can_access_peer (const tensor& device, const tensor& peer_device)
{
...
...
dlib/dnn/cuda_utils.h
View file @
4a9cccb4
...
...
@@ -131,8 +131,8 @@ namespace dlib
struct
max_jobs
{
max_jobs
(
size_
t
n
)
:
num
(
n
)
{}
size_
t
num
;
max_jobs
(
in
t
n
)
:
num
(
n
)
{}
in
t
num
;
};
template
<
typename
Kernel
,
typename
...
T
>
...
...
dlib/dnn/tensor.h
View file @
4a9cccb4
...
...
@@ -137,7 +137,7 @@ namespace dlib
const
matrix_exp
<
EXP
>&
item
)
{
DLIB_CASSERT
(
idx
<
num_samples
());
DLIB_CASSERT
(
idx
<
(
unsigned
long
)
num_samples
());
DLIB_CASSERT
(
item
.
size
()
==
nr
()
*
nc
()
*
k
());
static_assert
((
is_same_type
<
float
,
typename
EXP
::
type
>::
value
==
true
),
"To assign a matrix to a tensor the matrix must contain float values"
);
...
...
dlib/matrix/matrix.h
View file @
4a9cccb4
...
...
@@ -1751,7 +1751,7 @@ namespace dlib
literal_assign_helper
(
const
literal_assign_helper
&
item
)
:
m
(
item
.
m
),
r
(
item
.
r
),
c
(
item
.
c
),
has_been_used
(
false
)
{}
explicit
literal_assign_helper
(
matrix
*
m_
)
:
m
(
m_
),
r
(
0
),
c
(
0
),
has_been_used
(
false
)
{
next
();}
~
literal_assign_helper
()
throw
(
std
::
exception
)
~
literal_assign_helper
()
noexcept
(
false
)
{
DLIB_CASSERT
(
!
has_been_used
||
r
==
m
->
nr
(),
"You have used the matrix comma based assignment incorrectly by failing to
\n
"
...
...
@@ -1778,7 +1778,7 @@ namespace dlib
private
:
friend
class
matrix
;
friend
class
matrix
<
T
,
num_rows
,
num_cols
,
mem_manager
,
layout
>
;
void
next
(
)
const
...
...
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