报错:MemoryError: Unable to allocate 4.23 GiB for an array with shape (15000,224,224,3) and data type float16
下面展示一些 内联代码片
。
index = [i for i in range(n_total)]
np.random.shuffle(index)
X_total = X_total[index]
Y_total = Y_total[index]
//我的数据太大了,n_total有上万,内存不够来运算
解决办法 – 笨方法,循环遍历
index = [i for i in range(n_total)]
np.random.shuffle(index)
for i