Skip to content

Commit

Permalink
Hparams: Update docstrings (#6633)
Browse files Browse the repository at this point in the history
Googlers, see b/292102513 for context.

#hparams
  • Loading branch information
yatbear authored Oct 17, 2023
1 parent e4c5ecc commit 945710f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion tensorboard/data/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ def read_scalars(
plugin_name: String name of the TensorBoard plugin that created
the data to be queried. Required.
downsample: Integer number of steps to which to downsample the
results (e.g., `1000`). See `DataProvider` class docstring
results (e.g., `1000`). The most recent datum (last scalar)
should always be included. See `DataProvider` class docstring
for details about this parameter. Required.
run_tag_filter: Optional `RunTagFilter` value. If provided, a time
series will only be included in the result if its run and tag
Expand Down
5 changes: 2 additions & 3 deletions tensorboard/plugins/hparams/backend_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,8 @@ def read_last_scalars(self, ctx, experiment_id, run_tag_filter):
experiment_id=experiment_id,
plugin_name=scalar_metadata.PLUGIN_NAME,
run_tag_filter=run_tag_filter,
# TODO(#3436): We assume that downsampling always includes
# the most recent datum, which holds for all implementations
# of interest but is not yet required by the interface.
# `read_scalars` always includes the most recent datum, therefore
# downsampling to one means fetching the latest value.
downsample=1,
)
return {
Expand Down

0 comments on commit 945710f

Please sign in to comment.