padding precital in training/valid