
Python
weixin_44229976
这个作者很懒,什么都没留下…
展开
-
Python:Select Interpreter无法匹配解决办法
在vscode中输入Python:Select Interpreter无法匹配解决办法。安装:插件python。原创 2023-04-19 21:29:48 · 1529 阅读 · 0 评论 -
Python脚本开头的#!/usr/bin/python或 #!/usr/bin/env python
Python开头使用#!/usr/bin/python原创 2023-03-03 11:32:53 · 308 阅读 · 0 评论 -
RuntimeError: Input type (torch.cuda.HalfTensor) and weight type (torch.FloatTensor)
将卷积运算放到初始化中,与模型初始化一块加载到cuda原来代码:class layer(nn.Module): ''' x: input features with shape [N,C,H,W] gamma, b: parameters of mapping function ''' def __init__(self): super(layer, self).__init__() self.avg_pool = nn.Adapt原创 2022-03-06 16:28:42 · 4596 阅读 · 3 评论 -
Xshell下pyhton和ipython程序的暂停,杀死进程,后台挂起,恢复
让程序在后台运行使用命令 bg …搬回前台运行使用命令 fg …暂停python程序运行 CTRL + Z终止python程序运行 CTRL + Cipython CTRL + Z 暂停程序运行[1]+ Stopped python3 tools/train.py[1]+ Stopped;它告诉你这是作业1;kill -9 %1杀死作业1。...原创 2022-02-26 22:04:36 · 1288 阅读 · 0 评论 -
Python下划线命名模式
具体解释请转载博主:添加链接描述原创 2021-12-09 20:59:38 · 445 阅读 · 0 评论