(m, x, y, name, feat_dict)
| 142 | |
| 143 | # firstly, get input features of all linear layers |
| 144 | def cache_input_hook(m, x, y, name, feat_dict): |
| 145 | x = x[0] |
| 146 | x = x.detach().cpu() |
| 147 | feat_dict[name].append(x) |
| 148 | |
| 149 | input_feat = defaultdict(list) |
| 150 | handles = [] |
nothing calls this directly
no outgoing calls
no test coverage detected