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
ModelZoo
ResNet50_tensorflow
Commits
b7ce045c
Commit
b7ce045c
authored
Sep 05, 2017
by
David Andersen
Committed by
GitHub
Sep 05, 2017
Browse files
Merge pull request #2109 from cclauss/patch-5
adversarial_crypto: ac.eve_optimizer, ac.reset_eve_vars
parents
db74c7e6
ecdc7f87
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
adversarial_crypto/train_eval.py
adversarial_crypto/train_eval.py
+3
-3
No files found.
adversarial_crypto/train_eval.py
View file @
b7ce045c
...
@@ -249,17 +249,17 @@ def train_and_evaluate():
...
@@ -249,17 +249,17 @@ def train_and_evaluate():
if
train_until_thresh
(
s
,
ac
):
if
train_until_thresh
(
s
,
ac
):
for
_
in
xrange
(
EVE_EXTRA_ROUNDS
):
for
_
in
xrange
(
EVE_EXTRA_ROUNDS
):
s
.
run
(
eve_optimizer
)
s
.
run
(
ac
.
eve_optimizer
)
print
(
'Loss after eve extra training:'
)
print
(
'Loss after eve extra training:'
)
doeval
(
s
,
ac
,
EVAL_BATCHES
*
2
,
0
)
doeval
(
s
,
ac
,
EVAL_BATCHES
*
2
,
0
)
for
_
in
xrange
(
NUMBER_OF_EVE_RESETS
):
for
_
in
xrange
(
NUMBER_OF_EVE_RESETS
):
print
(
'Resetting Eve'
)
print
(
'Resetting Eve'
)
s
.
run
(
reset_eve_vars
)
s
.
run
(
ac
.
reset_eve_vars
)
eve_counter
=
0
eve_counter
=
0
for
_
in
xrange
(
RETRAIN_EVE_LOOPS
):
for
_
in
xrange
(
RETRAIN_EVE_LOOPS
):
for
_
in
xrange
(
RETRAIN_EVE_ITERS
):
for
_
in
xrange
(
RETRAIN_EVE_ITERS
):
eve_counter
+=
1
eve_counter
+=
1
s
.
run
(
eve_optimizer
)
s
.
run
(
ac
.
eve_optimizer
)
doeval
(
s
,
ac
,
EVAL_BATCHES
,
eve_counter
)
doeval
(
s
,
ac
,
EVAL_BATCHES
,
eve_counter
)
doeval
(
s
,
ac
,
EVAL_BATCHES
,
eve_counter
)
doeval
(
s
,
ac
,
EVAL_BATCHES
,
eve_counter
)
...
...
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