()
| 52 | |
| 53 | return [torch.mean(torch.abs(cond)).detach().cpu().numpy() for cond in all_hook_layer_conductance] |
| 54 | def main(): |
| 55 | root_path = osp.abspath(osp.join(__file__, osp.pardir, osp.pardir)) |
| 56 | opt, _ = parse_options(root_path, is_train=False) |
| 57 | |
| 58 | analysis = MACAnalysis(opt) |
| 59 | analysis.analyze() |
| 60 | |
| 61 | if __name__ == '__main__': |
| 62 | main() |
no test coverage detected