Loading

摘要: 报错 RuntimeError: reduce failed to synchronize: device-side assert triggered 原因:BCELoss 需要最后一层输出层为sigmod,可用 BCEWithLogitsLoss 进行替换,或直接在网络输出层添加sigmod层。 阅读全文
posted @ 2021-09-17 09:30 _yhwu 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 如被分割的一系列压缩包文件:package.z01、package.z02、package.z03、 package.zip 直接右键解压是不行的。 1. 首先合并文件: cat package.* > package_all.zip 2. 然后解压文件: unzip package_all.zip 阅读全文
posted @ 2021-09-14 16:58 _yhwu 阅读(755) 评论(0) 推荐(0) 编辑
摘要: 问题:Google play下载安装APP一直正在等待下载 1. 打开手机系统设置 2. 应用 3. 找到Google play(不是Google play 服务) 4. 点击进入详情页面 5. 找到>清空全部数据<按钮,并点击(不是清空缓存) 6. 确定 重新打开Google play再次下载 ( 阅读全文
posted @ 2021-09-01 21:53 _yhwu 阅读(16269) 评论(0) 推荐(0) 编辑
摘要: # 切换到master分支 git checkout master # 将bencha分支的代合并到master git merge bencha # 查看状态 git status # 推送 git push -u origin master 阅读全文
posted @ 2021-08-27 20:03 _yhwu 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 错误提示 warning: LF will be replaced by CRLF in readme.txt.The file will have its original line endings in your working directory. 问题原因:此问题是不同操作系统的使用的换行符 阅读全文
posted @ 2021-08-27 20:01 _yhwu 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 一招鲜 pip install package_name -i https://pypi.doubanio.com/simple 注:https,而不是http,被坑了N多回! 阅读全文
posted @ 2021-08-26 21:05 _yhwu 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 下载并安装gcc编译安装包 sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-7 sudo apt-get install g++-7 将gcc7,g++7 阅读全文
posted @ 2021-08-23 13:13 _yhwu 阅读(1005) 评论(0) 推荐(0) 编辑
摘要: 改用如下命令: pip install torch==1.2.0 -f https://download.pytorch.org/whl/torch_stable.html 阅读全文
posted @ 2021-08-22 20:18 _yhwu 阅读(1592) 评论(0) 推荐(0) 编辑
摘要: 方式一:文字环境下,\textasciitilde 方式二:公式环境下,$ \sim $ 注:推荐使用方式二 阅读全文
posted @ 2021-08-11 20:54 _yhwu 阅读(1677) 评论(0) 推荐(0) 编辑
摘要: C语言中程序计时方法总结 主流方法共分为如下三种 1. clock()函数 需要引用头文件 “time.h” 注:clock函数返回从开始这个程序到调用的 clock() 函数之间的CPU时钟计时单元(clock tick)数。返回值类型是 clock_t。其中 CLOCKS_PER_SEC 是一个 阅读全文
posted @ 2021-07-05 08:38 _yhwu 阅读(8126) 评论(0) 推荐(0) 编辑