assert same axis in batch as in training