| 7 | |
| 8 | |
| 9 | class ElementWiseTransform(): |
| 10 | def __init__(self, trans=None): |
| 11 | self.trans = trans |
| 12 | |
| 13 | def __call__(self, x): |
| 14 | if self.trans is None: return x |
| 15 | return torch.cat( [self.trans( xx.view(1, *xx.shape) ) for xx in x] ) |
| 16 | |
| 17 | |
| 18 | class IndexedTensorDataset(): |
nothing calls this directly
no outgoing calls
no test coverage detected