HW 10. d2l.Encoder error

When I run the code for HW10 and creating the seq2seq encoder class, it errors out with the following message:
AttributeError: module ‘d2l’ has no attribute ‘Encoder’

I tried pip installing the 0.9.1. version of d2l version as instructed and the error still seems to be there. How can I fix this problem?

try restarting your kernel after you updated the d2l package

nvm I solved this by running on instance. It didn’t work when I tried on local machine.