当前位置:网站首页>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
边栏推荐
- What is the difference between Pipeline and Release Pipeline in azure devops?
- For the first time in more than 20 years! CVPR best student thesis awarded to Chinese college students!
- Inspire students' diversified thinking with steam Education
- ESP8266 RC522
- ESP8266 RC522
- Day31-t1380-2022-02-15-not answer by yourself
- Windows环境下安装MongoDB数据库
- ArrayList analysis 1-cycle, capacity expansion, version
- A letter to 5000 fans!
- Two position relay st2-2l/ac220v
猜你喜欢

双位置继电器DLS-5/2 DC220V

Day31-t1380-2022-02-15-not answer by yourself

XJY-220/43AC220V静态信号继电器

冲击继电器ZC-23/DC220V

Dx-11q signal relay

Analyzing the wisdom principle in maker education practice

Docker 部署 MySQL 8

Hoo research | coinwave production - nym: building the next generation privacy infrastructure

解决IDEA:Class ‘XXX‘ not found in module ‘XXX‘

Vnctf 2022 cm CM1 re reproduction
随机推荐
[learning notes] simple DP
Chapter 53 overall understanding of procedures from the perspective of business logic implementation
解析融合学科本质的创客教育路径
[original] PLSQL index sorting optimization
Mustache syntax
小程序自定义宫格
[Deepin] 常用集合
A letter to 5000 fans!
Golang treasure house recommendation
ArrayList analysis 1-cycle, capacity expansion, version
[learning notes] double + two points
The real topic of the 11th provincial competition of Bluebridge cup 2020 - crop hybridization
解读创客教育所蕴含的科技素养
CSDN common complex formula template record
How to do the performance pressure test of "Health Code"
Principes de formation de la programmation robotique
Packing and unpacking of C #
Impact relay zc-23/dc220v
06.论Redis持久化的几种方式
P4 learning - p4runtime