Model_summary() throwing up error

I am using latest version of fastai on Colab. model_summary(learn.model) is trowing the following error:

** NameError Traceback (most recent call last)

<ipython-input-12-334cc816ccc6> in <module>() ----> 1 model_summary(learn.model)

NameError: name ‘model_summary’ is not defined**

Any insights??

You should use learn.summary() it will give you model summary as well.

Thanks, that solves my problem. However is it that model_summary() is no more part of latest fastai version? Documentation shows that the function exists.

For model_summary you pass the learner model_summary(learn).