fastais default vision transforms e. g. Resize will only be applied to the following classes: (PIL)Image.Image,TensorBBox,TensorPoint (see the screenshot below). I guess you have to write your own “ImageNdimTensor” class, block and transforms. Maybe there is another way (does PIL support 4 dimensions somehow maybe?!)
I did something similar for a Conv1d CNN - maybe you get the idea: