当前位置:网站首页>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
边栏推荐
- How to do after winning the new debt? Is it safe to open an account online
- Gsi-ecm digital platform for engineering construction management
- GSI-ECM工程建设管理数字化平台
- Mysql database common sense storage engine
- 【SQL】字符串系列2:将一个字符串根据特定字符分拆成多行
- Pytorch preserves different forms of pre training models
- Leetcode 20. Valid parentheses
- bounding box iou
- 学会打字后的思考
- Leetcode 74. Search two-dimensional matrix
猜你喜欢

vulnhub DC:1渗透笔记

高薪程序员&面试题精讲系列91之Limit 20000加载很慢怎么解决?如何定位慢SQL?

Matlab: psychtoolbox installation

On IRP from the perspective of source code

go interface

Solution: NPM err! code ELIFECYCLE npm ERR! errno 1

Keywords static, extern + global and local variables

MySQL基础之写表(创建表)

"Meta function" of tidb 6.0: what is placement rules in SQL?

Unity Odin ProgressBar add value column
随机推荐
JSX syntax rules
Bracket matching -- [implementation of one-dimensional array]
C# 知识
Latex formula
[matlab 2016 use mex command to find editor visual studio 2019]
学会打字后的思考
高薪程序员&面试题精讲系列91之Limit 20000加载很慢怎么解决?如何定位慢SQL?
Thinking after learning to type
Win 11K in 100 days, super complete learning guide for job transfer test
浅谈数据库设计之三大范式
6-5 string - 2 String copy (assignment) (10 points) the C language standard function library includes the strcpy function for string copy (assignment). As an exercise, we write a function with the sam
On the three paradigms of database design
Common commands of MySQL in Linux
GO語言開發天天生鮮項目第三天 案例-新聞發布系統二
"Meta function" of tidb 6.0: what is placement rules in SQL?
Solve importerror: cannot import name 'imread' from 'SciPy misc‘
Deep analysis of C language function
Async function ------ ES6
內網滲透之DOS命令
41. The first missing positive number