
工具
偷懒不学习
这个作者很懒,什么都没留下…
展开
-
linux突然所有命令都失效了,显示bash: xxxxx: command not found...
大佬就是大佬!!!两句命令解决 其一:直接在linux命令行界面输入如下,然后回车(导入环境变量,以及shell常见的命令的存放地址): export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin其二:如果系统所有命令都不能使用时,还可以使用绝对命令vi打开profile /bin/vi /etc/profile 在系统的配置文件里添加环境变量原创 2022-04-07 16:49:26 · 1789 阅读 · 0 评论 -
tmux的使用
1.新建tmux new -s 名称2.退出第一步:输入组合键 Ctrl+B,然后松开。 第二步:输入字母 d。3.查看tmux ls4.进入tmux a -t 名称5.删除tmux kill-session -t 2原创 2022-03-24 17:31:06 · 375 阅读 · 0 评论 -
RuntimeError: CUDA error: no kernel image is available for execution on the deviceCUDA kernel error
RuntimeError: CUDA error: no kernel image is available for execution on the deviceCUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.For debugging consider passing CUDA_LAUNCH_BLOCKING=1.原创 2022-03-24 16:27:21 · 3796 阅读 · 2 评论 -
git分支上传
查看当前分支git branch创建新分支git branch xxx切换分支git checkout 分支名上传git status 查看修改信息git add 文件路径/文件名git add * //提交所有修改的文件git commit -m “新分支上的修改操作” //此次操作命名为新分支上的修改操作git push origin 分支名 //推送到远程的分支名上...原创 2022-03-23 16:03:49 · 1640 阅读 · 0 评论 -
pytorch报错:RuntimeError: CUDA out of memory.(CUDA内存不足)
RuntimeError: CUDA out of memoryFor debugging consider passing CUDA_LAUNCH_BLOCKING=1.查看gpu使用情况:nvidia-smi找到运行的py文件import osos.environ["CUDA_VISIBLE_DEVICES"] = "0"参考https://blog.youkuaiyun.com/wcy23580/article/details/90177136...原创 2022-03-08 18:00:25 · 1553 阅读 · 0 评论 -
torch只能下载onlycpu
换其他版本原创 2022-03-08 16:22:25 · 306 阅读 · 0 评论 -
数据库
修改默认密码时使用ALTER USER ‘root’@‘localhost’ IDENTIFIED BY ‘123456’;参考:MySQL及MySQLworkbench安装教程原创 2021-05-11 17:38:51 · 89 阅读 · 0 评论