3.Reduction operations
![](https://img-blog.csdnimg.cn/img_convert/0b54da977d2a666150dc1627b982e50b.png)
![](https://img-blog.csdnimg.cn/img_convert/ad019023287108fc893cea175f759dd1.png)
![](https://img-blog.csdnimg.cn/img_convert/49d93db4b6bdf17d41b98e9a0c79c93b.png)
![](https://img-blog.csdnimg.cn/img_convert/09477dcdac506b4fa205a7d81c66749f.png)
![](https://img-blog.csdnimg.cn/img_convert/d6d686c797acd49bc39f140fcf3b8dd1.png)
![](https://img-blog.csdnimg.cn/img_convert/5cef88b2513ac7f837c7f9b1572e6ef0.png)
![](https://img-blog.csdnimg.cn/img_convert/e0ce9d093b8523a98046c40e1136ec4e.png)
![](https://img-blog.csdnimg.cn/img_convert/f91bee9e167504106379a1f46a92af9c.png)
![](https://img-blog.csdnimg.cn/img_convert/1cebf2c5874b8acbeaa74d12ca65f796.png)
![](https://img-blog.csdnimg.cn/img_convert/bb2caf62c5055c49849e8f93948c7f27.png)
![](https://img-blog.csdnimg.cn/img_convert/db69abc196761041545578b2d3600af7.png)
1.我们经常在神经网络输出预测张量上使用Argmax函数,这让我们可以确定哪个类别的预测值最高。
这是因为输出张量的每个指标都对应于一个特定的预测类别。
![](https://img-blog.csdnimg.cn/img_convert/c25053fdb620886dde5a8c01ea00da55.png)
1.看看这些操作,当我们称它们为3x3张量的均值时,减少的输出是一个标量张量。
2.如果我们想要把这个值作为一个数字,我们可以使用item(),它只适用于标量张量。
![](https://img-blog.csdnimg.cn/img_convert/2c6980688f72f4024a3a137d936e6d2a.png)
1.我们经常在神经网络输出预测张量上使用Argmax函数,这让我们可以确定哪个类别的预测值最高。
这是因为输出张量的每个指标都对应于一个特定的预测类别。
1.看看这些操作,当我们称它们为3x3张量的均值时,减少的输出是一个标量张量。
2.如果我们想要把这个值作为一个数字,我们可以使用item(),它只适用于标量张量。