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

Function main

scripts/adaSAM_mac_analysis.py:97–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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
97def 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
104if __name__ == '__main__':
105 main()

Callers 1

Calls 3

analyzeMethod · 0.95
parse_optionsFunction · 0.90
Ada_MACAnalysisClass · 0.85

Tested by

no test coverage detected