This commit is contained in:
William Falcon 2020-10-11 13:16:36 -04:00 committed by GitHub
parent b9f2682b7d
commit 9dfb4d2e41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -187,8 +187,8 @@ class TensorBoardLogger(LightningLoggerBase):
try:
self.experiment.add_scalar(k, v, step)
except Exception as e:
m = f'you tried to log {v} which is not currently supported. Try a dict or a scalar/tensor.'
raise MisconfigurationException(m)
m = f'\n you tried to log {v} which is not currently supported. Try a dict or a scalar/tensor.'
type(e)(e.message + m)
@rank_zero_only
def log_graph(self, model: LightningModule, input_array=None):