예제 #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
파일: core.py 프로젝트: muellerzr/unpickler
 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')