tf.compat.v1.train.SessionRunValues  |  TensorFlow v2.16.1 (original) (raw)

tf.compat.v1.train.SessionRunValues

Stay organized with collections Save and categorize content based on your preferences.

Contains the results of Session.run().

tf.compat.v1.train.SessionRunValues(
    results, options, run_metadata
)

In the future we may use this object to add more information about result of run without changing the Hook API.

Args
results The return values from Session.run() corresponding to the fetches attribute returned in the RunArgs. Note that this has the same shape as the RunArgs fetches. For example: fetches = global_step_tensor => results = nparray(int) fetches = [train_op, summary_op, global_step_tensor] => results = [None, nparray(string), nparray(int)] fetches = {'step': global_step_tensor, 'summ': summary_op} => results = {'step': nparray(int), 'summ': nparray(string)}
options RunOptions from the Session.run() call.
run_metadata RunMetadata from the Session.run() call.
Attributes
results A namedtuple alias for field number 0
options A namedtuple alias for field number 1
run_metadata A namedtuple alias for field number 2

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-04-26 UTC.