New: AI Engineering Shortcuts — instant download • guest checkout Browse

AI / ML

Tensors in AI

  • 15 pages
  • Beginner
  • English
  • Updated Oct 2026

A 15-page visual guide to tensors in AI and deep learning. Master tensor rank, shape, indexing, reshaping, broadcasting, matrix multiplication, attention shapes, memory, autograd, and practical PyTorch operations.

4.99 €

Buy & Download PDF
  • Instant download after payment
  • Secure checkout (Stripe)
  • Download link sent to email

Product details

Language
English
Level
Beginner
Pages
15 pages
Last updated
Oct 2026

Digital product — no physical shipping

Download link available immediately after payment

Download link also sent to the buyer's email

What's inside

Tensors in AI — The Visual Guide is a practical, visual introduction to the fundamental data structure behind modern neural networks.

Learn how to read and manipulate tensor shapes confidently, understand what each dimension represents, and avoid the shape errors that frequently appear when building deep-learning models.

Inside the guide: tensor rank and shape; dtype and device; indexing and slicing; real-world tensor shapes for text, images, audio, and video; reshape, view, permute, transpose, flatten, squeeze and unsqueeze; cat vs stack; broadcasting; matrix multiplication and reductions; einsum; tensors inside neural networks; attention tensor shapes; autograd and gradients; data types and memory usage; common shape errors; strides and contiguous tensors; masking; and practical PyTorch examples.

The guide also follows tensors through neural networks and language models, including the shape journey from token IDs (B, T) to embeddings (B, T, D) and model outputs (B, T, V).

It includes a dedicated treatment of multi-head attention, showing how tensors move through Q, K and V, attention scores, softmax, and merged heads.

Format: PDF • Pages: 15 • Version: 1.1 • Language: English • Code: Python / PyTorch • Level: Beginner–Intermediate

More sheets you might find useful.

View all AI / ML sheets →

4.99 €

Buy & Download PDF

Secure Stripe checkout