You must use np.int8 here.