- 博客(17)
- 收藏
- 关注
原创 cp: cannot stat ‘pth/to/folder‘: Permission denied
cp: cannot stat 'pth/to/folder': Permission denied。
2023-01-10 02:49:04
1452
原创 freezing model parameters in pytorch;pytorch中固定模型参数的方法
freezing model parameters in pytorch;pytorch中固定模型参数的方法
2022-08-06 10:41:11
858
原创 RuntimeError: The server socket has failed to listen on any local network address. The server socket
pytorch; torch.distributed.launch;
2022-08-05 22:09:06
13951
4
原创 [Recommended material] self attention in Transformer, clearly explained
Transformer; self-attention, explained
2022-06-10 12:33:22
173
原创 VNC viewer timeout; 远程连接ubuntu系统超时
root 用户下,输入:iptables -I INPUT -p tcp --dport 5901:5903 -j ACCEPT即可解决
2022-02-28 14:26:14
2188
原创 Downloading C/C++ language components (Linux / x86_64)
ProblemThe report from vscode (as shown in the title) cannot be canceled and keep showing there. This happens when I am trying to build a c++ environment on the server via vscode.SolutionDownload cpptools-linux.vsix (click todownload) from vscode-cpp
2021-09-06 21:25:22
381
原创 汉诺塔Hanoi的python非递归实现
请先点击阅读文字部分个人认为该文章比较详细地总结出了汉诺塔的移动规律。(详见链接文字部分)总体思路:确定要移动的盘子的序号,如1号,2号,…,k号确定该盘子移动的方向。根据文章所述,确定方式如下:N 为盘子总数,k为盘子的序号数。若 N+k 是偶数,则盘子移动方向为从右向左;若 N+k为奇数,则则盘子移动方向为从左向右。例如,N=5,k=1,则 N+k=6 为偶数。那么1号盘的...
2021-08-22 22:03:13
1874
原创 AttributeError: ‘int‘ object has no attribute ‘numel‘
ProblemI was trying to enumerate through a torch.utils.data.DataLoaderobject, where it takes self-defined dataset_ as a parameter. The dataset looks like this: dataset_.append((img, label, label, is_backdoor, acc, conf)).Printing print(type(img),type(raw
2021-08-22 21:49:00
2409
原创 Cannot run the remote Python interpreter: Can‘t get remote credentials for deployment server
reference: Here
2021-08-22 09:51:36
1406
原创 ssh: Could not resolve hostname e: Temporary failure in name resolution
I was using scp command to download files and folders to local environment. This was my command:scp -r xxx@10.26.9.90:/data/xxx/folder/ e:/data/xxx/But the following error raised:ssh: Could not resolve hostname e: Temporary failure in name resolution
2021-08-21 20:59:27
2210
原创 Install terminal quit with output: bash: powershell: command not found; 试图写入管道不存在
I need to connect to server for running experiments. This is what I get when trying to connect to server with ssh-remote 0.50.0 and vscode 1.58.3e276df8ca7e: runningAcquiring lock on /home/chenguiming/.vscode-server/bin/c3f126316369cd610563c75b1b1725e067
2021-07-19 22:55:51
6265
2
原创 利用functiontools规避带参数函数
原创文章,谢绝转载!在写程序时,我们有时需要使用函数A捆绑函数B,而函数A规定,它所捆绑的函数不能带有参数,而函数B恰恰带有参数。这种情况下,我们可以使用functiontools 中的partial 和updated_wrapper解决这一问题。## from: http://louistiao.me/posts/adding-__name__-and-__doc__-attributes-...
2020-04-18 03:42:35
573
1
原创 利用turtle库实现我的第一个算法
import turtle tt = turtle.Turtle()ts = turtle.Screen()'''约省略100行代码'''def MonsterAim(d=20): a = tt.position() b = mons.position() x = (a-b)[0] y = (a-b)[1] # print(x,y) #...
2020-04-17 02:14:59
294
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人