Defines the interface for the “forward” task, which can be used for recognition, alignment, search, etc.
- class returnn.forward_iface.ForwardCallbackIface#
Callback interface for the forward task.
Define forward_callback in your config to an instance or class of this.
- init(*, model)#
Run at the beginning.
- process_seq(*, seq_tag: str, outputs: TensorDict)#
Called for each sequence, or entry in the dataset. This does not have the batch dim anymore. The values in outputs are Numpy arrays.
Run at the end.