疑惑

解惑

数据量太大了,也就是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相关推荐

  1. 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 ...

  2. 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 ...

  3. numpy.core._exceptions.MemoryError: Unable to allocate 167. MiB for an array with shape (2970, 2460,

    估计是batchsize太大,最后一千多张图片出不来

  4. Linux | MemoryError: Unable to allocate 2.10 GiB for an array内存溢出问题解决

    在机器学习训练中,因载入的矩阵过于庞大,在本机训练是总会报 MemoryError的错,又因本人需要将10G多的内容同时载入一同训练,无法使用其他博客(推荐下面链接处所给博客)所用到的方法,只能从硬件 ...

  5. Python Unable to allocate MiB for an array with shape

    最近在运行一个python项目,不过并不熟悉python,因为一直在做java开发的工作.最近改了一个python项目里的SQL,查询的数据量更大了,运行后抛出异常,所以初步怀疑是内存不够 pycha ...

  6. 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),主要是进行矩阵运算时涉及的 ...

  7. 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 ...

  8. ORA-04031: Unable To Allocate 32 Bytes Of Shared Memory

    记录一次生产库遇到的4031错误,后来通过调整sga大小将问题解决了 报错信息: ORA-04031: 无法分配 32 字节的共享内存 ("shared pool","s ...

  9. 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 ...

最新文章

  1. (14)Why some people find exercise harder than others
  2. Android 自定义线程池的实战
  3. java 回滚异常_Spring事务管理只对出现运行期异常进行回滚
  4. 本地同时修改2个版本
  5. 从RCNN到SSD,深度学习目标检测算法盘点
  6. WPF,Silverlight与XAML读书笔记第六 - WPF新概念之一逻辑树与可视树
  7. 智能实验室-杀马(Defendio) 4.11.0.790
  8. 阿里云长视频上传以及返回播放地址
  9. Android 系统应用-通信应用-MCC、MNC和IMSI的介绍以及运营商标识码对应表
  10. 内核热补丁,真的安全么?| 龙蜥技术
  11. 安装 AD LTspice电路仿真软件
  12. 关于优秀的管理者学习笔记
  13. 项目实施管理之项目调研
  14. [JAVA使用技巧]Java抽取Word和PDF格式文件_网络大本营
  15. 不同BMP位图与调色板分析
  16. 学习 Java ,是看书学习快,还是看视频学习快呢 ?
  17. Python 坡度、坡向计算
  18. 【读论文】RFN-Nest: An end-to-end residual fusion network for infrared and visible images
  19. html5仿蚂蚁森林效果代码,vue仿支付宝蚂蚁森林水滴
  20. atomikos JTA 源码解读

热门文章

  1. IOT开发的学习-linux#5 gcc编译生成一个c语言实行文件,用sh调用实行
  2. KK版本和L版本编绎camera参数命
  3. 北美票房排行榜 实时_快手直播丨主播实时直播监测数据分享——思文22号美妆童装专场...
  4. Linux——进程、任务和线程
  5. PPP原理 PAP认证 CHAP认证
  6. 不怕有错误,就怕没错误(1)
  7. 人类群星闪耀时——决定人类历史的10个瞬间
  8. 008-阈下意识|识别商场上的圈套
  9. CDMA sid, nid, bid 含义解释
  10. ISBN号码 xdoj 88