Download espnet2/layers/inversible_interface.py from tobiasc/conex: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/spaces/tobiasc/conex/resolve/main/espnet2/layers/inversible_interface.py
- Command line
-
hf download hf://spaces/tobiasc/conex/espnet2/layers/inversible_interface.py
-
curl -L -o inversible_interface.py https://huggingface.co/spaces/tobiasc/conex/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 | |