diarization#

(s3prl.task.diarization)

Diarization Permutation Invarant Task

Authors
  • Jiatong Shi 2022

  • Leo 2022

DiarizationPIT#

class s3prl.task.diarization.DiarizationPIT(model: Module)[source][source]#

Bases: Task

predict(x, x_len)[source][source]#
forward(_mode: str, x, x_len, label, label_len, record_id: str, chunk_id: int, _dump_dir: Optional[str] = None)[source][source]#

Define 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.

reduction(_mode: str, cached_results: List[dict], _dump_dir: Optional[str] = None)[source][source]#
call_super_init: bool = False[source]#
dump_patches: bool = False[source]#
get_state()[source]#
parse_cached_results(cached_results: List[dict])[source]#
set_state(state: dict)[source]#
abstract test_reduction()[source]#
abstract test_step()[source]#
abstract train_reduction()[source]#
abstract train_step()[source]#
abstract valid_reduction()[source]#
abstract valid_step()[source]#
training: bool[source]#