当前位置:网站首页>reduce_ Reduction in sum()_ indices
reduce_ Reduction in sum()_ indices
2022-06-22 06:07:00 【Startled】
Refer to this answer
https://www.zhihu.com/question/51325408/answer/125426642
reduction_indices, Literally, it means “ Collapse dimension ”, That is, according to which dimension to add .
Such as :

because square(y-x)=[1,4,9,16], It's a one-dimensional vector ( tensor ), therefore reduction_indices Can only be set to 0, Set other errors . The result is 30, That is to say 1 Dimension collapse is 0 dimension .
take xy Try a two-dimensional tensor :

here ,square(y-x)=[[1,4,9,16],[1,4,9,16]], Guess what the result is ? you 're right , According to 0 Dimensional collapse , namely “ That's ok ”, That is, the original n Row change 1 That's ok , I.e. by line sum, The answer for [2,8,18,32].
The lines , If reduction_indices=[1] Well ?
The answer is :[30,30], It can be understood as [[30],[30]].
over.
边栏推荐
- MySQL basic interview questions
- 单细胞文献学习(part3)--DSTG: deconvoluting spatial transcriptomics data through graph-based AI
- Performance optimization best practices for reducing Game Size
- 相干声呐GeoSwath的综述
- pgsql批量插入
- 性能优化 之 3D资产优化及顶点数据管理
- C指針的理解
- PID笔记
- Single precision, double precision and precision (Reprint)
- An unordered array of N integers. Find the first number after each element that is larger than it. The time complexity is O (n)
猜你喜欢

Serial port (RS - 232)

小熊派BearPi-HM Micro正式合入OpenHarmony主干

生信可视化(part4)--相关性图

触 发 器

单细胞论文记录(part12)--Unsupervised Spatial Embedded Deep Representation of Spatial Transcriptomics

JTAG接口

单精度,双精度和精度(转载)

Ethernet communication protocol

Single cell thesis record (Part12) -- unsupervised spatial embedded deep representation of spatial transcriptomics

SQLServer中的子查询
随机推荐
生信可视化(part2)--箱线图
401 string (344. reverse string, 541. reverse string II, Title: Sword finger offer 05. replace spaces, 151. reverse words in string)
Beifeng helps Nanchang Emergency Management Bureau to build a public-private integrated emergency communication guarantee network
idea插件EasyCode的使用
DOS bat syntax record I
五大常考SQL面试题
牛客-TOP101-BM27
Logback自定义Pattern参数解析
朗国科技助力OpenHarmony生态繁荣
【技术随记】
osg编译osgQt
Academic circle of cattle II (daily question 49 in spring)
Adaboost
【自己动手写CPU】异常相关指令的实现
Vulkan pre rotation processing equipment direction
Ethernet UDP frame contract design
EPP (enhanced parallel port)
Single cell literature learning (Part2) -- stplus: a reference based method for the exact enhancement of St
Dos Bat 语法记录一
Keil调试时设置断点的高级用法