当前位置:网站首页>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
边栏推荐
- Some grounded words
- MySQL 存储过程和函数
- Go limit depth traversal of files in directory
- MySQL进阶之表的增删改查
- Preliminary understanding of cache elimination algorithm (LRU and LFU)
- Sequential state
- 亚马逊和Epic将入驻,微软应用商城向第三方开放
- 电脑越用越慢怎么办?文件误删除恢复方法
- 高薪程序员&面试题精讲系列91之Limit 20000加载很慢怎么解决?如何定位慢SQL?
- How to configure SSH public key in code cloud
猜你喜欢
100天拿下11K,转岗测试的超全学习指南
Preliminary understanding of cache elimination algorithm (LRU and LFU)
Devaxpress report replay: complete the drawing of conventional two-dimensional report + histogram + pie chart
Commande dos pour la pénétration de l'Intranet
Matlab matrix index problem
Come in and teach you how to solve the problem of port occupation
Leetcode 74. Search two-dimensional matrix
Case of the third day of go language development fresh every day project - news release system II
Flex layout
Go language development Daily Fresh Project Day 3 Case - Press Release System II
随机推荐
Unity asset import settings
How many hacking methods do you know?
PHP的Laravel与Composer部署项目时常见问题
Matlab: psychtoolbox installation
Deep analysis of C language function
电脑越用越慢怎么办?文件误删除恢复方法
Leetcode 1351. Negative numbers in statistical ordered matrices
Awk example skills
Learn to C language fourth day
Minecraft 1.12.2模组开发(四十三) 自定义盾牌(Shield)
Awk print special characters
Keywords static, extern + global and local variables
bounding box iou
Send email to laravel
居家第二十三天的午饭
pikachuxss如何获取cookie靶场,返回首页总是失败
Elastic box model
Leetcode 1337. Row K with the weakest combat effectiveness in the matrix
JS arrow function user and processing method of converting arrow function into ordinary function
100天拿下11K,转岗测试的超全学习指南