Skip to content

Commit

Permalink
fix exception raising (#6901)
Browse files Browse the repository at this point in the history
  • Loading branch information
kandluis authored Apr 8, 2021
1 parent 742c48e commit 90e37ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/loggers/tensorboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def log_metrics(self, metrics: Dict[str, float], step: Optional[int] = None) ->
# todo: specify the possible exception
except Exception as ex:
m = f'\n you tried to log {v} which is not currently supported. Try a dict or a scalar/tensor.'
type(ex)(ex.message + m)
raise ValueError(m) from ex

@rank_zero_only
def log_graph(self, model: LightningModule, input_array=None):
Expand Down

0 comments on commit 90e37ba

Please sign in to comment.