上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页
摘要: error info: (They can occur at the same time.) tonyyan@tonyyan-X11SPI:~$ nvidia-smi Unable to determine the device handle for GPU 0000:65:00.0: GPU is 阅读全文
posted @ 2021-06-30 16:01 略略略—— 阅读(1834) 评论(0) 推荐(0) 编辑
摘要: import torchvision.transforms as transforms image = transforms.functional.to_tensor(image) Convert a PIL Image or numpy.ndarray to tensor. This functi 阅读全文
posted @ 2021-06-30 10:26 略略略—— 阅读(1306) 评论(0) 推荐(0) 编辑
摘要: module not found error, how python interpreter find modules: The directory from which the input script was run, or the current directory if the interp 阅读全文
posted @ 2021-06-29 17:00 略略略—— 阅读(1188) 评论(0) 推荐(0) 编辑
摘要: import a_module print(a_module.__file__) however: AttributeError: 'module' object has no attribute '__file__' import inspect inspect.getfile(module) s 阅读全文
posted @ 2021-06-29 14:36 略略略—— 阅读(500) 评论(0) 推荐(0) 编辑
摘要: Shift + CTRL + F9 = 只更新html CTRL + n = 快速打开类 Shift + CTRL + n = 快速打开文件 CTRL + d = 复制当前所选内容并粘贴到所选区域的后面 alt + insert = 在类中自动生成构造器、getter、setter 等 alt + 阅读全文
posted @ 2021-06-27 23:19 略略略—— 阅读(83) 评论(0) 推荐(0) 编辑
摘要: The JAVA_HOME environment variable is not defined correctlyThis environment variable is needed to run this propramJAVA_HOME should point to a JDK not 阅读全文
posted @ 2021-06-25 15:13 略略略—— 阅读(566) 评论(0) 推荐(0) 编辑
摘要: torch.onnx.export 时添加参数 training=2,可以将conv和bn 分开显示,否则onnx默认将bn层融合到conv层。 添加training=2 重新生成onnx之后,再次用Netron 查看网络结构: 带有BN层的卷积操作,其卷积的bias 取消掉了,与BN 的beta合 阅读全文
posted @ 2021-06-25 10:37 略略略—— 阅读(1998) 评论(0) 推荐(0) 编辑
摘要: 本文时间:2021-06-24,使用OKhttp 4.9.1 原来的请求方式: OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://api.github.com 阅读全文
posted @ 2021-06-24 14:24 略略略—— 阅读(396) 评论(0) 推荐(1) 编辑
摘要: git commit --amend --no-edit 比如当前有一个提交 git commit -m 'add readme' , 但敲下这条命令才发现,readme中漏写了一行。 这时不需要撤销提交,也不需要新的提交,更改之后使用上述命令即可在同一个提交中追加内容。当然,这仅仅适用于细微的更改 阅读全文
posted @ 2021-06-23 16:17 略略略—— 阅读(223) 评论(0) 推荐(1) 编辑
摘要: 出错的git命令: git push -u origin main解决方法:git show-ref8c4c7afc8d831dcba4f8989e39eb8286c1657439 refs/heads/master新命令:git push -u origin master成功解决参考:https: 阅读全文
posted @ 2021-06-23 16:07 略略略—— 阅读(2880) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页