- 博客(10)
- 收藏
- 关注
原创 LaTex 常用代码记录
中文格式引用(文献编号在右上角)\newcommand{\upcite}[1]{\textsuperscript{\cite{#1}}}
2021-12-03 19:34:23
503
原创 中断模型训练后 GPU 显存占用未释放
ps -ef | grep train.py | grep -v grep | awk {'print $2'} | xargs -n1 kill -9ps -ef显示所有正在运行的进程|管道grep train.py字符串搜索grep -v grep去除包含 grep 的进程行awk {'print $2'}只保留 pid 信息xargs -n1 kill -9把前面命令的输出结果作为 "kill -9" 命令的参数。...
2021-10-21 17:47:33
1442
1
原创 Jupyter lab 和 VSCode 配置远程开发环境
# 1. 安装Jupyter labpip install jupyterlab# 2. 生成默认配置文件jupyter server --generate-config# 3. 设置秘钥jupyter server password# 4. 在生成的配置文件 ~/.jupyter/jupyter_notebook_config.py 中添加如下配置:c.ServerApp.allow_remote_access = Truec.ServerApp.ip = '*'c.Server...
2021-09-29 20:33:42
3164
原创 2021-08-21编程题
# -*- coding: UTF-8 -*-input_ = [10, 4, 3]n, k, m = input_n_people = {i: str(i) for i in range(1, n+1)}A = 0B = n + 1ret = []while (len([i[1] for i in n_people.items() if i[1] !=0]) > 0): for _ in range(k): cur = A+1 if A+1 <= ...
2021-08-21 21:10:54
182
原创 python 字典合并
字典中没有相同的 key爱人都会拿人头火热依噶额我让他娃儿字典中有相同的 key,将对应的 value 合并为 list在这里插入代码片
2020-12-05 19:52:45
294
原创 pytorch-lightning 设置为每个训练 epoch 结束都保存 checkpoint
这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Mar
2020-11-28 23:38:24
10227
1
原创 debug 记录1:pytorch-lightning 控制台输出 loss=nan
def optimizer_step(self, current_epoch, batch_idx, optimizer, optimizer_idx, optimizer_closure, using_native_amp, using_lbfgs): # warm up lr step = self.trainer.global_step + 1 lr = self.optimizer_conf['lr'] * self.d_model ** (-...
2020-11-17 14:46:02
2146
2
原创 Interspeech2020 论文阅读笔记
Interspeech2020论文阅读笔记Spoken Term Detection(关键词识别)ASR功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入Spoken Term Detection(关键词识别)Stacked 1D
2020-11-08 22:13:17
804
1
原创 torch.as_strided 方法
# torch.as_stridedtorch.as_strided(input,size,stride,storage_offset=0)→ Tensor'''input(Tensor) – the input tensor.size(tupleorints) – the shape of the output tensorstride(tupleorints) – the stride of the output tensorstorage_offset(in...
2020-08-03 23:57:18
1811
原创 pytorch 学习笔记2
pytorch通过numpy读取csv文# pytorch通过numpy读取csv文件import csvimport numpy as npimport torchdata_path = "../../data/***.csv"data_numpy = np.loadtxt(data_path , dtype=np.float32, delimiter=";", skiprows=1)data = torch.from_numpy(data_numpy )features = dat
2020-07-15 10:08:27
235
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人