Пример #1
0
 def __init__(self, attr, nm=None):
     store_attr('attr,nm')
Пример #2
0
 def __init__(self, train_aug, valid_aug):
     store_attr()
Пример #3
0
 def __init__(self, pool_mode='concat'):
     store_attr()
     self.pooler = _pooler[pool_mode]
Пример #4
0
 def __init__(self, lib_path: Path = Path('.'), **kwargs):
     store_attr()
     super().__init__(**kwargs)
Пример #5
0
 def __init__(self, f, start, end): store_attr('f,start,end')
 def __call__(self, pos): return self.f(self.start, self.end, pos)
 def __init__(self, items, x_tfm=None, y_tfm=None):
     store_attr()
 def __init__(self, x_tfm, y_tfm):
     store_attr()
Пример #8
0
 def __init__(self, device_to, device_from=torch.device('cpu')):
     store_attr('device_to,device_from')