Haven’t figure a nice way to handle Text Model, the function now works for all other learner type except Text, seems that the api is a bit different for SequentialRNN, would love some help.
I am struggling to make it work with Text model. A few issue observed.
Embedding weight is correctly capture, but you can see the hook.stored is None, which suggest it never get executed as the default value should be 0 instead.
LSTM, the weight tensor stored is not called weight, but with some variation like weight_hh_l0, but again the hook.stored is None.
Only Linear layer return expected result.
@jeremy I notice the summary function for the older fastai 0.4 is not implemented for RNN as well, is there some special thing makes it harder to implement? Hope it is ok to @ you for this one.