上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 106 下一页
摘要: 转自:https://www.cnblogs.com/wupiao/articles/13323283.html 1.区别 x.data和x.detach()都是从原有计算中分离出来的一个tensor变量 ,并且都是inplace operation.在进行autograd追踪求倒时,两个的常量是相 阅读全文
posted @ 2021-07-09 10:42 lypbendlf 阅读(347) 评论(0) 推荐(0)
摘要: 1.访问中间层 import torch import torch.nn as nn model = nn.Sequential( nn.Linear(10,10), nn.ReLU(), nn.Linear(10,10), nn.ReLU(), nn.Linear(10,10), nn.ReLU( 阅读全文
posted @ 2021-07-09 10:38 lypbendlf 阅读(1306) 评论(0) 推荐(0)
摘要: 1.结果 $ webbench -c 100 -t 10 http://baidu.com/ Webbench - Simple Web Benchmark 1.5 Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software. Benc 阅读全文
posted @ 2021-07-08 16:30 lypbendlf 阅读(835) 评论(0) 推荐(1)
摘要: 转自:https://support.10xgenomics.com/single-cell-multiome-atac-gex/software/pipelines/latest/advanced/h5_matrices 1.描述 ColumnTypeDescription barcodes st 阅读全文
posted @ 2021-07-04 22:00 lypbendlf 阅读(218) 评论(0) 推荐(0)
摘要: 1.h5文件格式 https://blog.csdn.net/buchidanhuang/article/details/89716252 HDF(Hierarchical Data Format),设计用于存储和组织大量数据的文件格式。 h5文件中有两个核心的概念:组“group”和数据集“dat 阅读全文
posted @ 2021-07-04 21:58 lypbendlf 阅读(7729) 评论(0) 推荐(0)
摘要: 1.umap导入不进来 cannot import name 'UMAP' from 'umap' https://www.kaitaiblog.com.tw/?p=254 pip uninstall umap pip install umap-learn 阅读全文
posted @ 2021-07-04 21:38 lypbendlf 阅读(669) 评论(0) 推荐(0)
摘要: 转自:https://blog.csdn.net/qq_36046650/article/details/108856558 1.zip和enumerate 2.长度不同用cycle 阅读全文
posted @ 2021-07-03 15:04 lypbendlf 阅读(736) 评论(0) 推荐(0)
摘要: 1.np.random.choice numpy.random.choice(a, size=None, replace=True, p=None) 从给定的一维数组中生成随机数 参数: a为一维数组类似数据或整数;size为数组维度;p为数组中的数据出现的概率 a为整数时,对应的一维数组为np.a 阅读全文
posted @ 2021-07-03 14:47 lypbendlf 阅读(1194) 评论(0) 推荐(0)
摘要: 1.BCELoss和CrossEntropyLoss 区别 https://blog.csdn.net/f156207495/article/details/88874911 BCELoss是针对二分类的,CrossEntropyLoss是针对多分类的: 也就是使用的分类函数不同。二分类使用sigm 阅读全文
posted @ 2021-07-02 14:01 lypbendlf 阅读(160) 评论(0) 推荐(0)
摘要: 转自:https://blog.csdn.net/xiexu911/article/details/80820028 1.torch.squeeze() 只会去掉维度为1的那个维度。它只会去掉维度为1的维度,像下面的没有为1的维度,就不会改变: >>> aaa=np.ones((3,2)) >>> 阅读全文
posted @ 2021-06-22 15:18 lypbendlf 阅读(129) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 106 下一页