returnn.frontend.backend#

Public backend-related functions.

returnn.frontend.backend.select_backend_torch()[source]#

Selects the PyTorch (low-level) backend.

returnn.frontend.backend.select_backend_returnn_layers_tf()[source]#

Selects the RETURNN layers backend (based on TF).

returnn.frontend.backend.is_backend_raw_tensor_dim_tag_independent() bool[source]#
Returns:

whether raw tensors of the backend are independent of Dim (Usually yes, e.g. tf.Tensor or torch.Tensor, but the TF-layers backend is an exception.)