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

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.

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.

  • seq_tag

  • outputs


Run at the end.