HeyTensor

Fix PyTorch tensor shape errors quickly.

CodeEdit & EnhanceAnalyze & ResearchDevelopers

Pricing: free — Free to use in browser · Visit website

HeyTensor is a web-based tool that helps you calculate and debug tensor shapes for various layers in PyTorch models. It supports Conv2d, Linear, LSTM, and more, allowing you to chain layers and explore architecture presets. Simply paste your error message to get instant fixes.

Pros

  • Instantly fix tensor shape errors
  • Supports multiple layer types
  • Works directly in your browser

Cons

  • Limited to PyTorch models only
  • No advanced customization options

FAQ

How do I calculate Conv2d output shape?

Use the formula: H_out = floor((H_in + 2*padding - dilation*(kernel_size-1) - 1) / stride) + 1.

Why does PyTorch say mat1 and mat2 shapes cannot be multiplied?

Mismatch in the number of columns in mat1 and rows in mat2. Ensure they match for Linear layers.

Is HeyTensor free to use?

Yes, it's free and runs directly in your browser.

Top alternatives

Last updated: 2026-07-30