Data normalization

If I want to normalize the time series from 3 to 7, can I just use the np.interp (data, [3,7], [0,1) function? Or should I do it another way? I ask because my method does not work in eval () mode. The model is trained well, but as I understand it, Batchnorm layers do not work correctly in eval () mode.