orbit.StandardEvaluatorOptions
Stay organized with collections
Save and categorize content based on your preferences.
Advanced options for the orbit.StandardEvaluator
.
orbit.StandardEvaluatorOptions(
use_tf_function: bool = True,
use_tf_while_loop: bool = False,
recreate_iterator_for_each_eval: bool = True
)
Attributes |
use_tf_function
|
A boolean indicating whether to apply tf.function to the
evaluation loop. This will only affect the body of the loop (involving
eval_step ); eval_loop_begin and eval_loop_end will always be run
in eager mode.
|
use_tf_while_loop
|
A boolean indicating whether to run the evaluation loop
using a tf.while_loop . If True , use_tf_function must also be True .
|
recreate_iterator_for_each_eval
|
A boolean indicating whether to recreate a
new iterator for the evaluation dataset before each round of evaluation,
which implies each round of evaluation starts from the beginning of
the evaluation dataset. For example, the evaluation dataset is
[1, 2, 3, 4] , batch size is 1 and evaluation steps is 2. If True , the
data to be evaluated is [1, 2] every time. If False , the iterator
state is maintained between calls to StandardEvaluator.evaluate() .
|
Methods
__eq__
__eq__(
other
)
Class Variables |
recreate_iterator_for_each_eval
|
True
|
use_tf_function
|
True
|
use_tf_while_loop
|
False
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-11-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-01 UTC."],[],[]]