mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
add a hook for on_tng_metrics so that users get access to the grad_norm and mem_map dicts.
This commit is contained in:
@@ -19,3 +19,6 @@ class ModelHooks(torch.nn.Module):
|
||||
def on_post_performance_check(self):
|
||||
pass
|
||||
|
||||
def on_tng_metrics(self, metrics):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user