"NameError: name 'T' is not defined" Deep Learning Part 2(dl2) Lesson 10 IMDB

You are using a wrong version of fastai,
Use this installation guide if you want to make it work correctly Fastai v0.7 install issues thread