File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments