MCPcopy Create free account
hub / github.com/DragonisCV/RAM / main

Function main

scripts/mac_analysis.py:54–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53 return [torch.mean(torch.abs(cond)).detach().cpu().numpy() for cond in all_hook_layer_conductance]
54def 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
61if __name__ == '__main__':
62 main()

Callers 1

mac_analysis.pyFile · 0.70

Calls 3

analyzeMethod · 0.95
parse_optionsFunction · 0.90
MACAnalysisClass · 0.85

Tested by

no test coverage detected