当前位置:网站首页>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
边栏推荐
- Pikachuxss how to get cookie shooting range, always fail to return to the home page
- Go language development Daily Fresh Project Day 3 Case - Press Release System II
- 笔记本电脑卡顿怎么办?教你一键重装系统让电脑“复活”
- CUDA, NVIDIA driver, cudnn download address and version correspondence
- How to learn software testing? Self study or training? After reading this article, you will understand
- Elastic box model
- MySQL basic collection
- Recommended usage scenarios and production tools for common 60 types of charts
- MySQL基础之写表(创建表)
- Leetcode 709, convert to lowercase
猜你喜欢

GSI-ECM工程建设管理数字化平台

Elastic box model

PHP的Laravel与Composer部署项目时常见问题

go interface

浅谈数据库设计之三大范式

The more you use the computer, the slower it will be? Recovery method of file accidental deletion

Lunch on the 23rd day at home

Resolve the error - error identifier 'attr_ id‘ is not in camel case camelcase

Express③(使用Express编写接口、跨域有关问题)

Keywords static, extern + global and local variables
随机推荐
pytorch 1.7. The model saved by X training cannot be loaded in version 1.4 or earlier
laravel 发送邮件
Addition, deletion, modification and query of advanced MySQL data (DML)
內網滲透之DOS命令
Learn to C language fourth day
LeetCode 116. Populate the next right node pointer for each node
Latex formula
Go language development Daily Fresh Project Day 3 Case - Press Release System II
Selenium 显示等待WebDriverWait
Valueerror: invalid literal for int() with base 10 conversion error related to data type
go interface
Flex layout
UnhandledPromiseRejectionwarning:CastError: Cast to ObjectId failed for value
高薪程序员&面试题精讲系列91之Limit 20000加载很慢怎么解决?如何定位慢SQL?
Devaxpress report replay: complete the drawing of conventional two-dimensional report + histogram + pie chart
Vulnhub DC: 1 penetration notes
Some grounded words
Bracket matching -- [implementation of one-dimensional array]
Fastdfs mind map
100天拿下11K,转岗测试的超全学习指南