Skip to content

Commit 6b18061

Browse files
committed
Add GIST to docstring for quick access
1 parent 92b1db9 commit 6b18061

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

timm/utils/model.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ class ActivationStatsHook:
4545
module in `layer_names`.
4646
4747
Inspiration from https://docs.fast.ai/callback.hook.html.
48+
49+
Refer to https://gist.github.com/amaarora/6e56942fcb46e67ba203f3009b30d950 for an example
50+
on how to plot Signal Propogation Plots using `ActivationStatsHook`.
4851
"""
4952

5053
def __init__(self, model, hook_fn_locs, hook_fns):
@@ -79,6 +82,8 @@ def extract_spp_stats(model,
7982
forward pass to plot Signal Propogation Plots (SPP).
8083
8184
Paper: https://arxiv.org/abs/2101.08692
85+
86+
Example Usage: https://gist.github.com/amaarora/6e56942fcb46e67ba203f3009b30d950
8287
"""
8388
x = torch.normal(0., 1., input_shape)
8489
hook = ActivationStatsHook(model, hook_fn_locs=hook_fn_locs, hook_fns=hook_fns)

0 commit comments

Comments
 (0)