MCPcopy Create free account
hub / github.com/RylonW/DocNLC / __init__

Method __init__

models/base_model.py:9–14  ·  view source on GitHub ↗
(self, opt)

Source from the content-addressed store, hash-verified

7
8class BaseModel():
9 def __init__(self, opt):
10 self.opt = opt
11 self.device = torch.device('cuda' if opt['gpu_ids'] is not None else 'cpu')
12 self.is_train = opt['is_train']
13 self.schedulers = []
14 self.optimizers = []
15
16 def feed_data(self, data):
17 pass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected