lenskit.util.torch#

PyTorch utility functions.

Functions

inference_mode(func)

Function decorator that puts PyTorch in inference mode.

lenskit.util.torch.inference_mode(func)#

Function decorator that puts PyTorch in inference mode.