MATLAB: Matlab equivalent code in python

MATLABpython

Hi What would be an equivalent code in python for this line of Matlab code
X_test = int8(single(X_test) – 127)

Best Answer

X_test = np.int8(np.float32(X_test)-127)
Related Question