memoized input frames stacking in the iterator + split train/valid+test