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

Method __init__

scripts/random_analysis.py:10–12  ·  view source on GitHub ↗
(self, opt)

Source from the content-addressed store, hash-verified

8
9class RandomAnalysis(BaseAnalysis):
10 def __init__(self, opt):
11 super().__init__(opt)
12 self.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
13
14 def analyze(self):
15 name_list = [hook.name for hook in self.hook_list]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected