Dataloaders are not working in Fastai

There is a error when using functions with dataloaders.

The dataloaders give errors when using functions.

What are your PyTorch and fastai versions?

Fastai is 1.0.61

This is too old, we are currently on fastai 2.2.7…
If you really want to use this old version of fastai, you will have to downgrade PyTorch. This bug is due to a version incompatibility between PyTorch and fastai.