Spaces:
Running on Zero
Running on Zero
Download espnet2/layers/abs_normalize.py from Tom-Brenner/PhonePaint: direct link, hf CLI and curl.
- Browser
- Download file 359 Bytes
-
https://huggingface.co/spaces/Tom-Brenner/PhonePaint/resolve/main/espnet2/layers/abs_normalize.py
- Command line
-
hf download hf://spaces/Tom-Brenner/PhonePaint/espnet2/layers/abs_normalize.py
-
curl -L -o abs_normalize.py https://huggingface.co/spaces/Tom-Brenner/PhonePaint/resolve/main/espnet2/layers/abs_normalize.py
359 Bytes
| from abc import ABC | |
| from abc import abstractmethod | |
| from typing import Tuple | |
| import torch | |
| class AbsNormalize(torch.nn.Module, ABC): | |
| def forward( | |
| self, input: torch.Tensor, input_lengths: torch.Tensor = None | |
| ) -> Tuple[torch.Tensor, torch.Tensor]: | |
| # return output, output_lengths | |
| raise NotImplementedError | |