Intermediate layer output in text

Hi,

When creating the text_classifier_learner from fastai.text, I am trying to use the hook_output function to get the output of intermediate layers. However, I get

AttributeError: 'list' object has no attribute 'detach'

Has anyone been able to do that?

Thanks
Akhil