I remember this happening to me last week. Not sure but I think it was because model had a single layer group, can you check output of len(learn.get_layer_groups()) ?
I tried and here is the output
AttributeError Traceback (most recent call last)
[<ipython-input-52-6789da740752>](https://localhost:8080/#) in <module>() ----> 1 len(learn.get_layer_groups())
AttributeError: 'Learner' object has no attribute 'get_layer_groups'
Tried this aftwerwards, this gives 1 len(learn.layer_groups)
Did you find a solution if it’s a single layer group?
Doing anything with a slice expects multiple groups. Usually this is done for transfer learning. We cannot do this here as you only have one, hence why you get a ‘div by one’ error
My bad, gave you some old fastai code. It should be learn.layer_groups in v1. Well, slicing is for giving different part of the network different learning rates, but with only 1 it doesn’t make sense. You either use a single value or create your own layer groups