自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 资源 (6)
  • 收藏
  • 关注

原创 RuntimeError: CUDA error: CUBLAS_STATUS_ALLOC_FAILED when calling `cublasCreate(handle)`

CUBLAS 是 CUDA 专门用来解决线性代数运算的库。而上述报错则是说明读取的数据类别数与网络模型中设置的类别数不一致造成。比如,你的数据是5各类别,而你的网络中的分类数(num_classes)设置成了6。首先,你要检查读取数据的路径看是否是正确读取想要的数据;对比是否labels的最大值与读取数据的类别数一致。然后,打印网络中的标签(即labels);

2023-03-20 13:08:04 2133

原创 win10 VMware 虚拟机中 ubantu系统无法连接网络问题

虚拟机 ubantu无法连接网络问题

2022-08-07 15:53:27 621

原创 ‘tensorflow.python.framework.ops.EagerTensor‘ object has no attribute ‘reshape‘

'tensorflow.python.framework.ops.EagerTensor' object has no attribute 'reshape'可以将其用numpy读取后再reshape。

2021-04-25 10:16:25 2724

原创 notebook中 TypeError: Input ‘filename‘ of ‘ReadFile‘ Op has type float32 that does not match expected

notebook中 TypeError: Input ‘filename’ of ‘ReadFile’ Op has type float32 that does not match expected type of string.一般这种错误是在修改了某一个单元格后,只运行了该单元格,你需要在noteboook中从头在运行一一遍,才会报出正真的错误。.........

2021-03-08 10:41:17 4400 6

原创 Maximum interactive GPU session count of 1 reached. 问题之解决方法

Maximum interactive GPU session count of 1 reached. kaggle 使用问题之一有时在kaggle新打开notebook时会弹出次错误,无法继续运行或新建notebook,此时是因为同时打开两个notebook在运行而造成,在红色箭头出点击会弹出同时运行的两个notebook,选择需要关闭的一个关闭即可。将需要关闭的notebook,点dismiss即可,剩下的notebook可以正常运行。...

2020-12-15 20:15:02 1494

原创 InvalidArgumentError: cannot compute Equal as input #1(zero-based) was expected to be a int32 tensor

InvalidArgumentError: cannot compute Equal as input #1(zero-based) was expected to be a int32 tensor but is a float tensor [Op: Equal]如高亮黄色处,知道Op: Equal是值Equal判断运算出错,tf.equal()函数比较两个元素需要数据类型相同,而上述程序tf.where(PRED.numpy()<0.5,0,1)结果是0或1为int32,而Y类型为floa

2020-09-21 20:59:34 5448 3

原创 TypeError: unsupported operand type(s) for -: ‘int‘ and ‘list‘ 解决过程

a=[1,2,3]b=np.array([4,5,6])运行:c=1-a报错:TypeError: unsupported operand type(s) for -: ‘int’ and ‘list’运行:c=1-b结果:错误表示:不支持 int整型和 list列表的 减法运算,列表不是numpy的数组,没有广播运算。因此需要将列表列表变成numpy数组,进行广播运算,就不会报错了。同理加法一样:TypeError: unsupported operand type(s) f

2020-09-21 09:46:34 39906

原创 TypeError: ‘method‘ object is not subscriptable 解决方法

x=tf.constant([2.1301,3.0102,3.3203])x=x.numpyfor i in range(3):print(round(x[i],2))运行报错:TypeError Traceback (most recent call last) in 2 x=x.numpy3 for i in range(3):----> 4 print(round(x[i],2))TypeError: ‘

2020-09-12 16:01:33 9962

原创 TypeError: type tensorflow.python.framework.ops.EagerTensor doesn‘t define __round__ method 解决办法

x=tf.constant([2.1301,3.0102,3.3203])for i in range(len(x)):print(round(x[i],2))运行报错如下:TypeError Traceback (most recent call last) in 1 x=tf.constant([2.1001,3.0012,3.3203])2 for i in range(len(x)):----> 3 pri

2020-09-12 15:52:30 3329

原创 SyntaxError: invalid syntax + SyntaxError: unexpected EOF while parsing

学习写网络结构时碰到报错:SyntaxError: invalid syntax如下图:提示错误在第四行但是我在第四行找了半天(到官网查了半天,对照写法没有错误),很奇怪,想到先注释第四行,结果又报错如下图:还说第四行有错,当时就郁闷了,都注释了还有错?索性删除第四行。再运行,在第三行报错检查,发现第三行少一个括号。补上后,所有错误解决。总结,有时报错的行不一定是实际错误发生的行。...

2020-09-05 18:16:18 539

原创 ERROR: Command errored out with exit status 1: command: ‘C:\Users\Administrator\.conda\envs\py

最近安装xgboost是报错如下ERROR: Command errored out with exit status 1:command: ‘C:\Users\Administrator.conda\envs\py36\python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-iw8dkbrz\xgboost\setup.py

2020-09-03 16:24:27 11808

原创 ModuleNotFoundError: No module named ‘sklearn.neighbors._base‘解决过程记录

导入代码就报错:import pandas as pdfrom imblearn.over_sampling import SMOTEfrom sklearn.model_selection import train_test_split报错如下:Traceback (most recent call last):File “”, line 1, in File “C:\Users\Administrator.conda\envs\py36\lib\site-packages\ imblear

2020-08-25 11:50:35 14969 2

原创 numpy.zeros()创建矩阵的小坑(记录)

创建一维矩阵a=np.zeros(3)与a=np.zeros((3))与a=np.zeros((3,))与a=np.zeros([3])与a=np.zeros([3,])等价:创建二维矩阵:注意此处创建的并不是以为数组,而是二维,即使它只有一行,同理如下即使只有一列创建的数组维数看zeros()中传入元组或列表的长度,注意此(3,)、[3,]元组长度为一。所以要注意对于一维[0. 0. 0.]和二维[[0. 0. 0.]]中的元素取用方式不一样。一维用a[0]、a[1]、a[2]二维用

2020-08-20 22:34:48 1938

原创 numpy.genfromtxt(......)读取文件出现错误 ValueError: Some## 标题 errors were detected ! Line #2 (got 3 co

numpy.genfromtxt(…)读取文件出现错误 ValueError: Some## 标题 errors were detected !Line #2 (got 3 columns instead of 4)Line #3 (got 3 columns instead of 4)…Traceback (most recent call last):File “”, line 1, in File “…”报错图如下原语句为year=numpy.genfromtxt(‘C:/User

2020-08-17 22:34:15 5506

原创 对于ImportError: No module named virtualenv...及安装问题补充解决

对于ImportError: No module named virtualenv…及安装问题补充解决从官网下载virtualenv安装包,地址:https://pypi.org/project/virtualenv/找到下载文件所在文件夹,在终端打开1.使用sudotarzxvfvirtualenv−20.0.27.tar.gz解压2.使用sudo tar zxvf virtualenv-20.0.27.tar.gz 解压2.使用sudotarzxvfvirtualenv−20.0.27.tar.

2020-07-24 10:47:30 1635

深度学习基础与应用 期末考试题 两套(含答案)

深度学习基础与应用 期末考试题目两套(含答案)

2024-06-24

windows-10-cmake-Release-graphviz-install-11.0.0-win32

windows-10-cmake-Release-graphviz-install-11.0.0-win32

2024-06-24

windows-10-cmake-Release-graphviz-install-11.0.0-win64

windows-10-cmake-Release-graphviz-install-11.0.0-win64

2024-06-24

texstudio-4.8.1-24年6月最新版,windows版

用于latex的编辑器

2024-06-24

联想笔记本G410最新BIOS

联想笔记本G410最新BIOS,或者想要其他联想笔记本型号的bios可以留言。

2021-07-21

最新惠普8530wBIOS 12.19.53.13

官网下载的惠普8530w笔记本电脑最新BIOS

2021-07-21

stable_windows_10_cmake_Release_Win32_graphviz-install-2.48.0-win32.exe

windows32位,最新版数据可视化,Graphviz 是一款由 AT&T Research 和 Lucent Bell 实验室开源的可视化图形工具,可以很方便的用来绘制结构化的图形网络,支持多种格式输出。

2021-07-21

stable_windows_10_cmake_Release_x64_graphviz-install-2.48.0-win64.exe

2021最新版数据可视化,Graphviz 是一款由 AT&T Research 和 Lucent Bell 实验室开源的可视化图形工具,可以很方便的用来绘制结构化的图形网络,支持多种格式输出。

2021-07-21

联想G510最新版BIOS 3.09

联想笔记本G510最新版的BIOS 3.09

2021-01-04

graphviz-install-2.44.2-dev.20200826.0525-win64.exe

最新版数据可视化,Graphviz 是一款由 AT&T Research 和 Lucent Bell 实验室开源的可视化图形工具,可以很方便的用来绘制结构化的图形网络,支持多种格式输出。

2020-08-26

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除