from abc import ABC, abstractmethod
import torch
[docs]class AbsProjector(torch.nn.Module, ABC):
[docs] @abstractmethod
def output_size(self) -> int:
raise NotImplementedError
[docs] @abstractmethod
def forward(self, utt_embd: torch.Tensor) -> torch.Tensor:
raise NotImplementedError