jacklishufan's picture
init commit
844f7c0
raw
history blame contribute delete
129 Bytes
import numpy as np
def preprocess_inputs(x):
x = np.asarray(x, dtype='float32')
x /= 127
x -= 1
return x