- Hands-On Artificial Intelligence for Beginners
- Patrick D. Smith
- 167字
- 2021-06-10 19:33:44
Tensors
While you may have heard of vectors and matrices before, the name tensor may be new. A tensor is a generalized matrix, and they have different sizes, or ranks, which measure their dimensions.
Tensors are three (or more)-dimensional lists; you can think of them as a sort of multi-dimensional object of numbers, such as a cube. Tensors have a unique transitive property and form; if a tensor transforms another entity, it too must transform. Any rank 2 tensor can be represented as a matrix, but not all matrices are automatically rank 2 tensors. A tensor must have this transitive property. As we'll see, this will come into play with neural networks in the next chapter. We can create tensors in Python such as the following:
tensor = [[[1,2,3,4]],[[2,5,6,3]],[[7,6,3,4]]]
Within the context of AI, tensors can represent things such as word embeddings or weights in a neural network. We'll talk about these more as we encounter at them in upcoming chapters.
- 基于C語言的程序設計
- 樂高機器人EV3設計指南:創造者的搭建邏輯
- 西門子S7-200 SMART PLC從入門到精通
- MCSA Windows Server 2016 Certification Guide:Exam 70-741
- 快學Flash動畫百例
- Security Automation with Ansible 2
- 大學計算機應用基礎
- STM32嵌入式微控制器快速上手
- 單片機技術項目化原理與實訓
- 手機游戲策劃設計
- Drupal高手建站技術手冊
- Serverless Design Patterns and Best Practices
- 精通ROS機器人編程(原書第2版)
- FreeCAD [How-to]
- 分布式Java應用