Pytorch——tensor

How to under the tensor

  • tensor
    • [what is tensor ?](#what is tensor ?)
    • [what is the big deal ?](#what is the big deal ?)
    • [how to understond the relative concept about the tensor ?](#how to understond the relative concept about the tensor ?)

tensor

what is tensor ?

We talk about the " Tenser" which is used in ML community.

Actually, the tenser is used as a talk and terminology to refine and rename things that already exist:

Call the "scalar" (a data) as the zero dimensional tensor;

Call the "array" in the programming field as the one dimensional tensor;

Call the "matrix" as the two dimensional tensor;

Call the "video" as the n dimensional tensor;

So, it is boring from the perspective of the gay who create the definition of tensor.

what is the big deal ?

It holds data, weights and biases.

Can realize the hardware acceleration and Autograd !

how to understond the relative concept about the tensor ?

The chain rule:

The Chain Rule is a fundamental concept in calculus. It provides a method for finding the derivative of a composite function that is composed of two or more functions.
Backpropogration:

It is the application of the chain rule, It is an efficient method for computing the gradient of the loss function with respect to theweights of the network, enabling the adjustment of weights to minimize the error.
The automatic differentiation:

is the automatic tool to realize the backpropogation. Of course, the forepropogation also can be realized by the autograd of the Pytorch.

reference:
backpropogation
tensor------statQuest
chain rule

相关推荐
Jahzo5 分钟前
openclaw本地化部署体验与踩坑记录--飞书机器人配置
人工智能·开源
Narrastory5 分钟前
明日香 - Pytorch 快速入门保姆级教程(一)
人工智能·pytorch·深度学习
数据智能老司机6 分钟前
用于进攻性网络安全的智能体 AI——在 n8n 中构建你的第一个 AI 工作流
人工智能·安全·agent
数据智能老司机9 分钟前
用于进攻性网络安全的智能体 AI——智能体 AI 入门
人工智能·安全·agent
Narrastory10 分钟前
明日香 - Pytorch 快速入门保姆级教程(二)
人工智能·pytorch·深度学习
AI攻城狮11 分钟前
OpenClaw Session 管理完全指南:Context 压缩、重置与持久化
人工智能·云原生·aigc
IVEN_12 分钟前
只会Python皮毛?深入理解这几点,轻松进阶全栈开发
python·全栈
Ray Liang1 小时前
用六边形架构与整洁架构对比是伪命题?
java·python·c#·架构设计
中杯可乐多加冰2 小时前
OpenClaw到底能做什么?有什么用?先装这几个实用的Skills
人工智能
AI攻城狮2 小时前
如何给 AI Agent 做"断舍离":OpenClaw Session 自动清理实践
python