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
0e7e4330
Commit
0e7e4330
authored
Nov 25, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes to avoid compiler warnings.
parent
f3ecb81f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
trainer.h
dlib/dnn/trainer.h
+4
-4
matrix2.cpp
dlib/test/matrix2.cpp
+10
-6
No files found.
dlib/dnn/trainer.h
View file @
0e7e4330
...
...
@@ -705,7 +705,7 @@ namespace dlib
test_steps_without_progress
=
0
;
// Empty out some of the previous loss values so that test_steps_without_progress
// will decrease below test_iter_without_progress_thresh.
for
(
int
cnt
=
0
;
cnt
<
test_previous_loss_values_dump_amount
+
test_iter_without_progress_thresh
/
10
&&
test_previous_loss_values
.
size
()
>
0
;
++
cnt
)
for
(
unsigned
long
cnt
=
0
;
cnt
<
test_previous_loss_values_dump_amount
+
test_iter_without_progress_thresh
/
10
&&
test_previous_loss_values
.
size
()
>
0
;
++
cnt
)
test_previous_loss_values
.
pop_front
();
}
}
...
...
@@ -825,7 +825,7 @@ namespace dlib
steps_without_progress
=
0
;
// Empty out some of the previous loss values so that steps_without_progress
// will decrease below iter_without_progress_thresh.
for
(
int
cnt
=
0
;
cnt
<
previous_loss_values_dump_amount
+
iter_without_progress_thresh
/
10
&&
previous_loss_values
.
size
()
>
0
;
++
cnt
)
for
(
unsigned
long
cnt
=
0
;
cnt
<
previous_loss_values_dump_amount
+
iter_without_progress_thresh
/
10
&&
previous_loss_values
.
size
()
>
0
;
++
cnt
)
previous_loss_values
.
pop_front
();
}
}
...
...
@@ -1281,8 +1281,8 @@ namespace dlib
std
::
atomic
<
bool
>
updated_net_since_last_sync
;
bool
sync_file_reloaded
;
int
previous_loss_values_dump_amount
;
int
test_previous_loss_values_dump_amount
;
unsigned
long
previous_loss_values_dump_amount
;
unsigned
long
test_previous_loss_values_dump_amount
;
};
// ----------------------------------------------------------------------------------------
...
...
dlib/test/matrix2.cpp
View file @
0e7e4330
...
...
@@ -27,12 +27,8 @@ namespace
dlib
::
rand
rnd
;
void
matrix_test
(
void
matrix_test
1
(
)
/*!
ensures
- runs tests on the matrix stuff compliance with the specs
!*/
{
typedef
memory_manager_stateless
<
char
>::
kernel_2_2a
MM
;
print_spinner
();
...
...
@@ -739,6 +735,13 @@ namespace
}
}
void
matrix_test2
(
)
{
typedef
memory_manager_stateless
<
char
>::
kernel_2_2a
MM
;
{
srand
(
423452
);
const
long
M
=
10
;
...
...
@@ -1145,7 +1148,8 @@ namespace
void
perform_test
(
)
{
matrix_test
();
matrix_test1
();
matrix_test2
();
}
}
a
;
...
...
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