当前位置:网站首页>Pytorch programming knowledge (2)
Pytorch programming knowledge (2)
2022-07-01 01:20:00 【Wsyoneself】
- num_worker( finger dataloader Number of worker processes created )
- GE2E:Speaker Verification( Verify whether the input speech belongs to a specific speaker The task of ) Loss function , End to end loss function , Fast convergence 、 Implement a simple
torch.gather(): From batch tensor Extract the data under the specified out of order index
array To tensor:torch.from_numpy()
A two-dimensional tensor Transposition :tensor = torch.transpose(tensor, dim0=0, dim1=1)
pytorch After middle convolution, the size of the image before and after input and output is guaranteed to remain unchanged , I.e. implementation TensorFlow in “same” The effect of :
If convolution kernel size is 3x3, Then it should be set padding=1, I.e. filling 1 Layer edge pixels ;
If convolution kernel size is 7x7, Then it should be set padding=3, fill 3 Layer edge pixels ;
That is to say padding The size is usually set to half the size of the core ( Rounding down ).
When debugging the network , Look at the tensor tensor shape shape:
emb.detach().cpu().numpy()
explain :detach(): take tensor Break away from the calculation diagram ,cpu() Place in cuda Upper tensor The switch to cpu On ( Because only cpu Upper tensor Can be called numpy), take tensor To array
边栏推荐
- 技术人进阶画业务大图,手把手教学来了
- 使用StrictMode-StrictMode原理(1)
- The question of IBL precomputation is finally solved
- [问题已处理]-nvidia-smi命令获取不到自身容器的GPU进程和外部的GPU进程号
- Green, green the reed. dew and frost gleam.
- Implementation of date class
- [LeetCode] 两数之和【1】
- 双位置继电器DLS-5/2 DC220V
- The quantity and quality of the devil's cold rice 101; Employee management; College entrance examination voluntary filling; Game architecture design
- Basic knowledge of software and hardware -- diary (1)
猜你喜欢

DLS-20型双位置继电器 220VDC

二十多年来第一次!CVPR最佳学生论文授予中国高校学生!

Golang treasure house recommendation

Xjy-220/43ac220v static signal relay

Orb-slam2 source code learning (II) map initialization

How to do the performance pressure test of "Health Code"

Analyze the maker education path integrating the essence of discipline

探索互联网时代STEAM教育创新之路

Locking relay ydb-100, 100V

Vnctf 2022 cm CM1 re reproduction
随机推荐
Usage of C set
(learning power + thinking power) x action power, summary of flywheel effect on the growth of technicians
Principes de formation de la programmation robotique
[daily record] - bug encountered in BigDecimal division operation
The question of IBL precomputation is finally solved
06.论Redis持久化的几种方式
MATLAB 最远点采样(FPS改进版)
[learning notes] structure
Detailed analysis of operators i++ and ++i in JS, i++ and ++i
Interpreting the scientific and technological literacy contained in maker Education
【学习笔记】简单dp
Oracle temporary table explanation
Day31-t1380-2022-02-15-not answer by yourself
DLS-20型双位置继电器 220VDC
奇偶链表[链表操作的两种大方向]
冲击继电器ZC-23/DC220V
Packing and unpacking of C #
[LeetCode] 爬楼梯【70】
ESP8266 RC522
Web compatibility testing of software testing