当前位置:网站首页>Norm normalization in tensorflow and pytorch of records
Norm normalization in tensorflow and pytorch of records
2022-04-23 20:48:00 【NuerNuer】
Recently, in the tensorflow Translate into torch There was a problem , There is a function tf.nn.l2_normalize No corresponding replacement function found , But I wrote such an operation myself , Recently, I've been reading to make a torch Source code found , Just record it in time
tf:
import tensorflow as tf
tf.nn.l2_normalize(x, dim, epsilon=1e-12, name=None)
Parameters :
x: Input ;
dim: by l2 Normalized dimension
epsilon: Normalized minimum boundary
torch:
import torch.nn.functional as F
F.normalize(input, p=2, dim=1, eps=1e-12, out=None)
Parameters :
input: Input
p: Norm type
dim: dimension
eps: Normalized minimum boundary
版权声明
本文为[NuerNuer]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210545522616.html
边栏推荐
- Unity asset import settings
- Identifier CV is not defined in opencv4_ CAP_ PROP_ FPS; CV_ CAP_ PROP_ FRAME_ COUNT; CV_ CAP_ PROP_ POS_ Frames problem
- Syntaxerror: unexpected token r in JSON at position 0
- Addition, deletion, modification and query of MySQL advanced table
- Linux中,MySQL的常用命令
- JS arrow function user and processing method of converting arrow function into ordinary function
- Solve importerror: cannot import name 'imread' from 'SciPy misc‘
- JSX syntax rules
- 亚马逊和Epic将入驻,微软应用商城向第三方开放
- laravel 发送邮件
猜你喜欢
GO语言开发天天生鲜项目第三天 案例-新闻发布系统二
Come in and teach you how to solve the problem of port occupation
Resolve the eslint warning -- ignore the warning that there is no space between the method name and ()
GO語言開發天天生鮮項目第三天 案例-新聞發布系統二
Vulnhub DC: 1 penetration notes
Common commands of MySQL in Linux
Keywords static, extern + global and local variables
Unity animation creates sequence frame code and generates animationclip
Flex layout
On the three paradigms of database design
随机推荐
软件测试要怎么学?自学还是培训看完这篇文章你就懂了
LeetCode 116. Populate the next right node pointer for each node
Go language development Daily Fresh Project Day 3 Case - Press Release System II
C knowledge
Explore ASP Net core read request The correct way of body
Learn to C language fourth day
How to learn software testing? Self study or training? After reading this article, you will understand
Fastdfs思维导图
Create vs project with MATLAB
Psychological formula for converting RGB to gray value
MySQL进阶之数据的增删改查(DML)
Bracket matching -- [implementation of one-dimensional array]
Pytorch preserves different forms of pre training models
Case of the third day of go language development fresh every day project - news release system II
亚马逊和Epic将入驻,微软应用商城向第三方开放
MySQL stored procedures and functions
Singleton mode
Awk example skills
Addition, deletion, modification and query of MySQL advanced table
matplotlib. Pyplot partition drawing