Source code for espnet2.spk.projector.abs_projector

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