Matlab equivalent code in python

4 views (last 30 days)
Hi What would be an equivalent code in python for this line of Matlab code
X_test = int8(single(X_test) - 127)

Accepted Answer

Walter Roberson
Walter Roberson on 1 May 2019
X_test = np.int8(np.float32(X_test)-127)

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!