espnet2.slu.postdecoder.abs_postdecoder.AbsPostDecoder
espnet2.slu.postdecoder.abs_postdecoder.AbsPostDecoder
class espnet2.slu.postdecoder.abs_postdecoder.AbsPostDecoder(*args, **kwargs)
Bases: Module
, ABC
Initializes internal Module state, shared by both nn.Module and ScriptModule.
abstract convert_examples_to_features(data: list, max_seq_length: int, output_size: int)
abstract forward(transcript_input_ids: LongTensor, transcript_attention_mask: LongTensor, transcript_token_type_ids: LongTensor, transcript_position_ids: LongTensor) → Tensor
Defines the computation performed at every call.
Should be overridden by all subclasses.
NOTE
Although the recipe for forward pass needs to be defined within this function, one should call the Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
abstract output_size() → int