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
81e456dd
Commit
81e456dd
authored
Mar 25, 2021
by
Ruoxin Sang
Committed by
A. Unique TensorFlower
Mar 25, 2021
Browse files
Clarify which part of the StandardEvaluator functions is in eager or graph mode.
PiperOrigin-RevId: 365133146
parent
207e8ed8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
orbit/standard_runner.py
orbit/standard_runner.py
+4
-2
No files found.
orbit/standard_runner.py
View file @
81e456dd
...
@@ -244,9 +244,11 @@ class StandardEvaluator(runner.AbstractEvaluator, metaclass=abc.ABCMeta):
...
@@ -244,9 +244,11 @@ class StandardEvaluator(runner.AbstractEvaluator, metaclass=abc.ABCMeta):
state = eval_reduce(state, step_outputs)
state = eval_reduce(state, step_outputs)
return eval_end(state)
return eval_end(state)
Calls to `eval_begin`
, `eval_reduce`,
and `eval_end` are always done in eager
Calls to `eval_begin` and `eval_end` are always done in eager
mode, while `eval_step` may be compiled with `tf.function` as determined by
mode, while `eval_step` may be compiled with `tf.function` as determined by
the `options` passed to `__init__`.
the `options` passed to `__init__`. `eval_reduce` is in eager mode if
`use_tf_while_loop=False` in `StandardEvaluatorOptions`, but in graph mode if
`use_tf_while_loop=True`.
This class does not support completely evaluating multiple different datasets
This class does not support completely evaluating multiple different datasets
(i.e., where every example of each dataset should be processed, as opposed to
(i.e., where every example of each dataset should be processed, as opposed to
...
...
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