returnn.forward_iface

Defines the interface for the “forward” task, which can be used for recognition, alignment, search, etc.

https://github.com/rwth-i6/returnn/issues/1336

class returnn.forward_iface.ForwardCallbackIface[source]

Callback interface for the forward task.

Define forward_callback in your config to an instance or class of this.

https://github.com/rwth-i6/returnn/issues/1336

init(*, model)[source]

Run at the beginning.

process_seq(*, seq_tag: str, outputs: TensorDict)[source]

Called for each sequence, or entry in the dataset. This does not have the batch dim anymore. The values in outputs are Numpy arrays.

Parameters:
  • seq_tag

  • outputs

finish()[source]

Run at the end.