set_recurrent_matmul_precision#
- torchrl.modules.set_recurrent_matmul_precision(mode: str | None) None[source]#
Set the process-global precision for the triton RNN backend.
- Parameters:
mode – One of
"ieee","tf32","tf32x3","fast","high-prec","auto"orNone."auto"andNoneclear the override and fall back totorch.get_float32_matmul_precision()(modulated by theTORCHRL_RNN_PRECISIONenv var if set)."fast"and"high-prec"are stored symbolically and resolve to a concrete mode at every kernel call based on the active CUDA device.
The setting is read at every triton GRU/LSTM call, so changes take effect immediately. Per-module
recurrent_matmul_precision=kwargs still override this global value.