So in the notebook you linked, tta_res is an array defined as tta_res = [] and then populated with the TTA predictions, so it’s a list of TTA predictions, not a model.
You can save any python object with save_pickle but you can only load learner objects with load_learner. In this case, you try to load a list with load_learner, which is the reason why it fails. If you want to load the array from the tta_res.pkl file, you can use load_pickle.
I’m having a hard time importing this function. So far I’ve tried the following, none work:
from fastai import load_pickle
from fastcore import load_pickle
from fastkaggle import load_pickle