(m, x, y, name, feat_dict)
| 167 | |
| 168 | # firstly, get input features of all linear layers |
| 169 | def cache_input_hook(m, x, y, name, feat_dict): |
| 170 | x = x[0] |
| 171 | x = x.detach().cpu() |
| 172 | feat_dict[name].append(x) |
| 173 | |
| 174 | input_feat = defaultdict(list) |
| 175 | handles = [] |
nothing calls this directly
no outgoing calls
no test coverage detected