Skip to content

Commit 862f9bc

Browse files
authored
Hparams: Return empty lists for DataProvider hyperparameter operations. (#6487)
The DataProvider abstract base class is changed to have simple implementations of both list_hyperparameters() and read_hyperparameters(). This is to accomodate TensorBoards' DataProvider implementations that do not currently implement these operations. We return empty lists in both operations.
1 parent 40b9bda commit 862f9bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorboard/data/provider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def list_hyperparameters(self, ctx=None, *, experiment_ids):
394394
Raises:
395395
tensorboard.errors.PublicError: See `DataProvider` class docstring.
396396
"""
397-
pass
397+
return []
398398

399399
def read_hyperparameters(self, ctx=None, *, experiment_ids):
400400
"""Read hyperparameter values.
@@ -411,7 +411,7 @@ def read_hyperparameters(self, ctx=None, *, experiment_ids):
411411
Raises:
412412
tensorboard.errors.PublicError: See `DataProvider` class docstring.
413413
"""
414-
pass
414+
return []
415415

416416

417417
class ExperimentMetadata:

0 commit comments

Comments
 (0)