logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

TypeError: type numpy.ndarray doesn‘t define __round__ method解决办法

具体报错:res1 = round(ret[0,:])#四舍五入到整数TypeError: type numpy.ndarray doesn’t define round method解决办法:因为数据类型为numpy.ndarray,必须使用np.round()方法。

#python#深度学习#矩阵
esp32 CMT130-V1.0 PS 240*240屏幕显示动态图片的实验

将pic.h复制到路径:.\Arduino\hardware\espressif\esp32\libraries\TFT_eSPI的下面。2、使用ImageConverter 565软件逐个转换fight1.c等文件。最下面定义fight照片的指针*数组。

文章图片
#c++#嵌入式硬件#单片机 +1
电影评论 ValueError: logits and labels must have the same shape ((None, 16) vs (None, 1))

电影评论报错如下:(logits.get_shape(), labels.get_shape()))ValueError: logits and labels must have the same shape ((None, 16) vs (None, 1))通过分析发现模型定义错误导致:前期模型:更改为:问题解决。

#深度学习#机器学习#神经网络
pytorch RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available

报错:RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.devic

#pytorch#深度学习#python
Visual Studio Code 运行时无法在界面下方查看调测结果,报错:timed out waiting for launcher to connect的解决办法

1、Visual Studio Code 运行时无法在界面下方查看调测结果,只是弹出一个cmd.exe窗口,需要调整cmd.exe的相关设置。3、软件调测问题解决。

文章图片
#vscode#ide#编辑器
The kernel for 10 mokeys.ipynb appears to have died. It will restart automatically

3、找到对应文件,在电脑安装位置E:\xxx\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin,拷贝。

文章图片
#tensorflow
optimization_pass.cc:185] None of the MLIR Optimization Passes are enabled (registered 2)解决办法

ptimization_pass.cc:185] None of the MLIR Optimization Passes are enabled (registered 2)解决办法tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:185] None of the MLIR Optimization Passes are enabl

#tensorflow#深度学习#人工智能
到底了