| 133 | return -signal if (random.random() < self.p) else signal |
| 134 | |
| 135 | class Mono(nn.Module): |
| 136 | def __call__(self, signal): |
| 137 | return torch.mean(signal, dim=0, keepdims=True) if len(signal.shape) > 1 else signal |
| 138 | |
| 139 | class Stereo(nn.Module): |
| 140 | def __call__(self, signal): |
no outgoing calls
no test coverage detected