Tensor Puzzles is an interactive collection of 21 exercises for learning tensor programming in PyTorch and NumPy. Each puzzle asks the learner to recreate a familiar array operation from first principles. Solutions must fit on one short line and use only a restricted set of indexing, arithmetic, comparison, and broadcasting tools. Standard convenience functions such as sum, view, squeeze, and take are intentionally prohibited. This constraint encourages a deeper understanding of shapes, indexing, and vectorized computation. Automated tests and visual examples help learners check their reasoning as they progress. The notebook is designed for Google Colab and is accompanied by a video walkthrough.

Features

  • Twenty-one tensor programming puzzles
  • PyTorch and NumPy exercises
  • Broadcasting-focused problem solving
  • Restricted one-line solutions
  • Automated tests and visual examples
  • Google Colab and video walkthrough

Project Samples

Project Activity

See All Activity >

Categories

Machine Learning

License

MIT License

Follow Tensor Puzzles

Tensor Puzzles Web Site

Other Useful Business Software
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime Icon
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime

General-purpose, compute-optimized, or GPU/TPU-accelerated. Built to your exact specs.

Live migration and automatic failover keep workloads online through maintenance. One free e2-micro VM every month.
Try Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Tensor Puzzles!

Additional Project Details

Programming Language

Python

Related Categories

Python Machine Learning Software

Registered

2026-07-24