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

Method __init__

ram/models/base_model.py:16–21  ·  view source on GitHub ↗
(self, opt)

Source from the content-addressed store, hash-verified

14 """Base model."""
15
16 def __init__(self, opt):
17 self.opt = opt
18 self.device = torch.device('cuda' if opt['num_gpu'] != 0 else 'cpu')
19 self.is_train = opt['is_train']
20 self.schedulers = []
21 self.optimizers = []
22
23 def feed_data(self, data):
24 pass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected