paddle,dataset问题

img


请问 image = np.random.random([784]).astype('float32')
label = np.random.randint(0, 9, (1, )).astype('int64')什么意思呢?

astype() 对数据类型进行转换
https://blog.csdn.net/weixin_42036641/article/details/86064700


np.random.random()函数
https://blog.csdn.net/qq_40108803/article/details/107523991


np.random.randint()函数
https://blog.csdn.net/qq_40643699/article/details/107986176

生成一个0到9之间的随机数字组成的1维数组,numpy默认使用32位的整数空间(int32),使用astype函数将其转换成64位(长整型)