会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Picassooo
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
28
29
30
31
32
33
34
35
36
···
73
下一页
2022年4月9日
+=, -=, /=, *= 在python是in-place 操作,要小心使用
摘要: +=, -=, /=, *= 在python是in-place 操作,要小心使用,特别是对于列表、张量、数组等数据类型,要谨慎使用+=, -=, /=, *=。
阅读全文
posted @ 2022-04-09 18:53 Picassooo
阅读(156)
评论(0)
推荐(0)
2022年4月8日
转:VScode+Latex+SumatraPDF反向搜索失败解决办法
摘要: VScode+Latex+SumatraPDF反向搜索失败解决办法
阅读全文
posted @ 2022-04-08 18:34 Picassooo
阅读(420)
评论(0)
推荐(0)
转:VScode如何自动换行设置
摘要: VScode如何自动换行设置 在设置搜索框中输入:Editor:Word Wrap
阅读全文
posted @ 2022-04-08 17:33 Picassooo
阅读(205)
评论(0)
推荐(0)
2022年4月3日
转:python中with的用法
摘要: python中with的用法
阅读全文
posted @ 2022-04-03 16:21 Picassooo
阅读(34)
评论(0)
推荐(0)
2022年3月27日
转:Pytorch张量的拆分与拼接
摘要: Pytorch张量的拆分与拼接
阅读全文
posted @ 2022-03-27 11:28 Picassooo
阅读(43)
评论(0)
推荐(0)
2022年3月24日
transformer(ViT)查看权重、梯度和梯度函数
摘要: 假设我们搭建的模型名称为net,在训练时,我们想查看第0个block的attention中的矩阵K的梯度函数和前几个权重、梯度: net.transformer.encoder.layer[0].attn.key.weight.grad_fn (key即矩阵K) net.transformer.en
阅读全文
posted @ 2022-03-24 10:41 Picassooo
阅读(467)
评论(0)
推荐(0)
2022年3月23日
python张量下标操作维度小于张量维度的情况
摘要: 例一 import torch import torch.nn as nn a = torch.rand([3, 3]) # a是2维的 b = a[:2] # 对a进行切片操作时,只指明了一维。这时的意思是,只对a的第一维进行切片操作,第二维不变,相当于b=a[:2, :] print('a:\n
阅读全文
posted @ 2022-03-23 19:15 Picassooo
阅读(58)
评论(0)
推荐(0)
python logging日志模块在多卡训练DDP中的使用
摘要: 本文参考了以下资料: 知乎:python logging 日志模块详解 python 日志输出模块 logging 简书:Python日志库logging总结 csdn: pytorch图像分类框架搭建——利用logging记录训练日志 一. 基本使用 logging 使用非常简单,使用 basic
阅读全文
posted @ 2022-03-23 10:56 Picassooo
阅读(1197)
评论(0)
推荐(1)
2022年3月20日
转:python导入任意目录下的模块
摘要: python导入任意目录下的模块
阅读全文
posted @ 2022-03-20 17:33 Picassooo
阅读(39)
评论(0)
推荐(0)
转:ml_collections的介绍
摘要: ml_collections的介绍
阅读全文
posted @ 2022-03-20 17:07 Picassooo
阅读(769)
评论(0)
推荐(0)
上一页
1
···
28
29
30
31
32
33
34
35
36
···
73
下一页
公告