- 博客(50)
- 收藏
- 关注
原创 Overleaf数学符号乱码等问题
原因:用了UTF-8编码,\usepackage[utf8]{ctex} 把这个注释掉即可。一般情况下,用英文撰写,使用XeLatex编译,正文和图片都不会出现问题。原因:一般是文内中文引起的,警惕是否有中文标点等。XeLatex编译图片标题是中文。
2024-11-14 17:56:26
501
原创 Pycharm 使用Git上传代码
Git -> Manage remote -> 将github上创建的项目网址粘过来先Commit 再Push注意分支和自己github上建立的分支保持一致如果push failed, 打开科学上网可解决。
2024-10-24 09:53:59
400
2
原创 python查看cuda、cudnn版本,查看当前cuda架构代码
【代码】python查看cuda、cudnn版本,查看当前cuda架构代码。
2024-03-30 17:14:51
1926
1
原创 nvidia-smi查看无进程,但GPU占用率100%问题解决
原因:记住记住记住Ctrl+Z是把当前运行程序挂起,并不是终止运行,终止用Ctrl+C,前段时间跑代码测性能和看部分结果一直用的Ctrl+Z,导致程序都处于挂起状态,占用大量内存。jobs -l 显示Linux中的任务列表及任务状态,包括后台运行的任务。ps -ef | grep ‘python’ 命令将显示所有包含 ‘python’ 关键词的进程信息。在系统进程中查找user并且同时包含 “python” 的进程的命令。| 符号是管道操作符,将命令的输出作为另一个命令的输入。
2024-03-30 10:12:54
3002
1
原创 pytorch 批量归一化BatchNorm的BatchNorm1d和BatchNorm2d理解
BatchNorm1d和BatchNorm2d
2024-03-09 12:30:31
1064
原创 PackagesNotFoundError:学习利用报错信息找到解决方法
为搜索你所要寻找的conda库的替换渠道,导航至https://anaconda.org,并在页面顶部的搜索栏搜索。反思:之前看到报错经常是直接复制报错信息去网上搜,但很多情况下报错信息里其实就给出了解决方案。划到页面最底部,有conda install的命令,安装即可。
2024-03-05 21:45:17
425
原创 ConvE代码复现-安装sklearn报错
error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [15 lines of output] The 'sklearn' PyPI package is deprecated, use 'scikit-learn'
2024-03-05 14:58:27
592
1
原创 VSCode配置opencv编译错误:In file included from D:\TOOLS\OpenCV\opencv-4.5.5\opencv\sources\3rdparty\protob
VSCode配置opencv,编译时报错,In file included from D:\TOOLS\OpenCV\opencv-4.5.5\opencv\sources\3rdparty\protobuf\src\google\protobuf\arena.cc:42:0:D:/TOOLS/OpenCV/opencv-4.5.5/opencv/sources/3rdparty/protobuf/src/google/protobuf/stubs/mutex.h: In constructor 'con
2023-03-22 13:10:39
890
原创 TypeError: only integer scalar arrays can be converted to a scalar index
TypeError: only integer scalar arrays can be converted to a scalar index
2022-11-28 16:54:23
5463
原创 RuntimeError: expected scalar type Float but found Double
报错RuntimeError: expected scalar type Float but found Double
2022-11-28 08:42:27
2936
原创 g.update_all(message_func=fn.copy_u(‘h‘, ‘m‘), reduce_func=fn.mean(‘m‘, ‘h_N‘))
DGL 消息函数和更新函数
2022-11-26 16:13:09
548
原创 AttributeError: module ‘backend_interagg‘ has no attribute ‘FigureCanvas‘解决
AttributeError: module ‘backend_interagg‘ has no attribute ‘FigureCanvas‘
2022-11-20 22:31:49
1607
1
原创 AttributeError: module ‘backend_interagg‘ has no attribute ‘FigureCanvas‘AttributeError: module ‘bac
AttributeError: module 'backend_interagg' has no attribute 'FigureCanvas'报错解决
2022-11-14 19:31:57
668
原创 Pytorch RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton
pytorch报错 Pytorch RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimension 0;解决方案
2022-11-14 19:30:44
4258
8
原创 自己动手写操作系统之引导启动自己写的操作系统
boot.asm里添加查找loader.bin的代码(记得将loader.asm编译成loader.bin),nasm boot.asm -o boot.bin编译boot,用FloppyWriter将boot.bin写入a盘(软盘)。a盘内容:loader.asm内容:在bochs的配置文件里修改如下两个地方完成后启动bochs,就会引导之前写的boot程序...
2022-05-17 11:08:43
326
原创 微信小程序富文本不更新时显示
错误截图:解决思路:如下图,发现这一系列object在一个text里,就借助css把text标签隐藏,但注意如果wxml其他地方还出现text标签要提前把它们换掉,否则会被一起隐藏!text{ display: none;}
2022-05-06 16:14:51
139
原创 微信小程序view页面传值
data-* :*为自定义名称,触发view中的bindtap事件时,会把该值发送给事件处理函数。eg:data-iddata-name<view class="buttonStyle" bindtap="pulloff" data-id="{{item._id}}" data-name="{{item.goods_name}}"></view>
2022-04-28 11:59:19
704
原创 微信小程序navigator点击效果颜色修改
用hover-class=“none”<navigator url="/pages/manageGoods/manageGoods" hover-class="none" >商品管理</navigator>
2022-04-27 16:54:06
918
原创 微信小程序返回页面并刷新
一开始返回页面,并调用云函数重新show页面了,但是并没有更新页面的数据,究其原因是,add数据和navigateBack返回同时运行了!!!解决方法:先add数据,在success里调用wx.navigateBack! wx.cloud.callFunction({ name: "addArticle", data: { time: this.data.time, id: thi
2022-04-27 15:52:40
1554
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人