Рет қаралды 6,405
In this video we'll take a closer look at the Tensor type in the Mojo🔥 standard library. We'll introduce the Tensor type, and go through an example where we'll implement vectorized element-wise matrix operations. We'll also show you examples of vectorized matrix-matrix, matrix-vector and matrix-scalar operations.
Code referenced in video: github.com/modularml/devrel-extras/tree/main/videos/introduction-to-tensors
Chapters:
00:00 What are Tensors? Tensors in PyTorch and NumPy
00:42 Introduction to Mojo🔥 Tensors
02:02 Create your first Mojo🔥 Tensor
03:45 Using Math standard library functions on Tensors -- naive way
08:07 Implementing vectorized Math operations on Tensors ⚡️
13:16 Vectorized matrix-matrix, matrix-vector, matrix-scalar operations
Download Mojo 🔥 - www.modular.com/mojo
Download VS Code Extension - marketplace.visualstudio.com/items?itemName=modular-mojotools.vscode-mojo
Join our Community! 🚀
Discord - discord.gg/modular
Github - github.com/modularml/mojo
X (aka Twitter) - x.com/modular_ai