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

Function main

scripts/ig.py:50–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 return [torch.mean(torch.abs(ig)).detach().cpu().numpy() for ig in all_hook_layer_gradiant]
49
50def main():
51 root_path = osp.abspath(osp.join(__file__, osp.pardir, osp.pardir))
52 opt, _ = parse_options(root_path, is_train=False)
53
54 analysis = IGAnalysis(opt)
55 analysis.analyze()
56
57if __name__ == '__main__':
58 main()

Callers 1

ig.pyFile · 0.70

Calls 3

analyzeMethod · 0.95
parse_optionsFunction · 0.90
IGAnalysisClass · 0.85

Tested by

no test coverage detected