>>> x = np.array([[1, 2, 3], [4, 5, 6]], np.int32) >>> type(x) >>> x.shape (2, 3) >>> x.dtype dtype('int32') >>> x = x.astype('uint8') >>> x.dtype dtype('uint8')
ps. dtype
댓글 없음:
댓글 쓰기