Download look2hear/utils/inversible_interface.py from NatalieElizabeth/Apollo-PyHARP-Rebuild: direct link, hf CLI and curl.
- Browser
- Download file 333 Bytes
-
https://huggingface.co/spaces/NatalieElizabeth/Apollo-PyHARP-Rebuild/resolve/main/look2hear/utils/inversible_interface.py
- Command line
-
hf download hf://spaces/NatalieElizabeth/Apollo-PyHARP-Rebuild/look2hear/utils/inversible_interface.py
-
curl -L -o inversible_interface.py https://huggingface.co/spaces/NatalieElizabeth/Apollo-PyHARP-Rebuild/resolve/main/look2hear/utils/inversible_interface.py
333 Bytes
| from abc import ABC, 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 |