摘要:
使用VSCode对一个用Shell脚本启动的Python程序进行Debug. 阅读全文
摘要:
在新的目录编译运行java文件,提示无法找到主类。 而在旧的目录下,可以正常运行。 解决方案: 参考自 https://stackoverflow.com/questions/57857855/could-not-find-or-load-main-class-vs-code#comment1021 阅读全文
摘要:
pypi, pip, anaconda, github, huggingface 镜像 阅读全文
摘要:
在Windows的Powershell中直接使用conda命令。 阅读全文
摘要:
自己遇到了这个问题,记录一下 以下写法 print_loss = loss.data[0] 在PyTorch>=0.5时,报错 IndexError: invalid index of a 0-dim tensor. Use tensor.item() in Python or tensor.ite 阅读全文