MemoryError: Unable to allocate array with shape (61721, 16000) and data typ
疑惑
解惑
数据量太大了,也就是cpu内存小导致的;
可以从以下几个方面去改进:
0、换一个性能好的电脑,主要是硬件的问题
1、numpy 在定义数组的时候,采用更低的精度。从float64降低为float32
array_ = np.zeros((10000,10000),dtype='float32') # 默认float64
2、修改pycharm的运行内存
Help->Find Action->(type "VM Options")->(Click)"Edit Custom VM Options" 打开pycharm64.exe.vmoptions进行编辑
修改-Xmx750m 为 -Xmx4096m 分配4G内存,视情况而定。保存并重启pycharm
3、修改windows虚拟内存
https://zhuanlan.zhihu.com/p/37332255
MemoryError: Unable to allocate array with shape (61721, 16000) and data typ相关推荐
- memoryerror: Unable to allocate array with shape (60000, 28, 28) and data ty
使用tf缩放图片遇到 (train_images, train_labels), (test_images,test_labels) = keras.datasets.fashion_mnist.lo ...
- MemoryError: Unable to allocate 1.43 TiB for an array with shape (3700, 5300) and data type float64
做图时遇到内存错误 MemoryError: Unable to allocate 1.43 TiB for an array with shape (3700, 5300) and data typ ...
- numpy.core._exceptions.MemoryError: Unable to allocate 167. MiB for an array with shape (2970, 2460,
估计是batchsize太大,最后一千多张图片出不来
- Linux | MemoryError: Unable to allocate 2.10 GiB for an array内存溢出问题解决
在机器学习训练中,因载入的矩阵过于庞大,在本机训练是总会报 MemoryError的错,又因本人需要将10G多的内容同时载入一同训练,无法使用其他博客(推荐下面链接处所给博客)所用到的方法,只能从硬件 ...
- Python Unable to allocate MiB for an array with shape
最近在运行一个python项目,不过并不熟悉python,因为一直在做java开发的工作.最近改了一个python项目里的SQL,查询的数据量更大了,运行后抛出异常,所以初步怀疑是内存不够 pycha ...
- Unable to allocate xxx GiB for an array with shape (xxxx, xxxx)
今天用Pycharm跑代码的时候报了个错误:Unable to allocate 14.1 GiB for an array with shape (xxxx, xxxx),主要是进行矩阵运算时涉及的 ...
- ValueError: Error when checking : expected input_1 to have 4 dimensions, but got array with shape (X
ValueError: Error when checking : expected input_1 to have 4 dimensions, but got array with shape (5 ...
- ORA-04031: Unable To Allocate 32 Bytes Of Shared Memory
记录一次生产库遇到的4031错误,后来通过调整sga大小将问题解决了 报错信息: ORA-04031: 无法分配 32 字节的共享内存 ("shared pool","s ...
- ORA-39095: Dump file space has been exhausted: Unable to allocate 8192 bytes
甲骨文Oracle数据库使用EXPDP/IMPDP进行Oracle数据迁移从高版本(11g)到底版本(10g)步骤 Oralce数据导入 可能产生的错误 ORA-39095: Dump file sp ...
最新文章
- (14)Why some people find exercise harder than others
- Android 自定义线程池的实战
- java 回滚异常_Spring事务管理只对出现运行期异常进行回滚
- 本地同时修改2个版本
- 从RCNN到SSD,深度学习目标检测算法盘点
- WPF,Silverlight与XAML读书笔记第六 - WPF新概念之一逻辑树与可视树
- 智能实验室-杀马(Defendio) 4.11.0.790
- 阿里云长视频上传以及返回播放地址
- Android 系统应用-通信应用-MCC、MNC和IMSI的介绍以及运营商标识码对应表
- 内核热补丁,真的安全么?| 龙蜥技术
- 安装 AD LTspice电路仿真软件
- 关于优秀的管理者学习笔记
- 项目实施管理之项目调研
- [JAVA使用技巧]Java抽取Word和PDF格式文件_网络大本营
- 不同BMP位图与调色板分析
- 学习 Java ,是看书学习快,还是看视频学习快呢 ?
- Python 坡度、坡向计算
- 【读论文】RFN-Nest: An end-to-end residual fusion network for infrared and visible images
- html5仿蚂蚁森林效果代码,vue仿支付宝蚂蚁森林水滴
- atomikos JTA 源码解读