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