Skip to content

Commit

Permalink
Fix error in tensorboard plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldeistler committed Dec 1, 2023
1 parent 9e7936d commit 618a262
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sbi/analysis/tensorboard_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,11 @@ def _get_event_data_from_log_dir(
# we inspect their argument signature. These events are named tuples
# that can be found here:
# https://github.com/tensorflow/tensorboard/blob/b84f3738032277894c6f3fd3e011f032a89d002c/tensorboard/backend/event_processing/event_accumulator.py#L37
# When looping over `inspect.getfullargspec()` there is also a `self`
# attribute.
_type = type(data[0])
for attribute in inspect.getfullargspec(_type).args:
if not attribute.startswith("_"):
if not attribute.startswith("_") and not attribute == "self":
if attribute not in all_event_data[tag_type][tag]:
all_event_data[tag_type][tag][attribute] = []
for datapoint in data:
Expand Down

0 comments on commit 618a262

Please sign in to comment.