()
| 95 | return [torch.mean(torch.abs(cond) if isinstance(cond, torch.Tensor) else torch.tensor(0.0)).detach().cpu().numpy() for cond in all_hook_layer_conductance] |
| 96 | |
| 97 | def main(): |
| 98 | root_path = osp.abspath(osp.join(__file__, osp.pardir, osp.pardir)) |
| 99 | opt, _ = parse_options(root_path, is_train=False) |
| 100 | |
| 101 | analysis = Ada_MACAnalysis(opt) |
| 102 | analysis.analyze() |
| 103 | |
| 104 | if __name__ == '__main__': |
| 105 | main() |
no test coverage detected