orbit.utils.LoopFnWithSummaries

View source on GitHub

Implements a two-program approach for optimizing summaries on TPU.

Inherits From: OptionalSummariesFunction

orbit.utils.LoopFnWithSummaries(
 function, **tf_function_kwargs
)

This version works with the result of create_tf_while_loop_fn.

Args

function The underlying function to wrap.
**tf_function_kwargs Additional arguments to pass to tf.function.

Methods

__call__

View source

__call__(
 iterator, num_steps
)

Call self as a function.

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 2025年04月18日 UTC.