error with d2l.HyperParameters

i get this error in Object-Oriented Design for Implementation part code, i run it on colab anyone knows how to fix it?

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-14-65a84a568aad> in <module>
      1 # Call the fully implemented HyperParameters class saved in d2l
----> 2 class B(d2l.HyperParameters):
      3     def __init__(self, a, b, c):
      4         self.save_hyperparameters(ignore=['c'])
      5         print('self.a =', self.a, 'self.b =', self.b)

AttributeError: module 'd2l.torch' has no attribute 'HyperParameters'