Matlab equivalent code in python

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

 採用された回答

Walter Roberson
Walter Roberson 2019 年 5 月 1 日

0 投票

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

その他の回答 (0 件)

カテゴリ

タグ

質問済み:

Prb
2019 年 5 月 1 日

回答済み:

2019 年 5 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by