YggNexus

HeyTensor

Fix PyTorch tensor shape errors instantly.

CodeEdit & EnhanceAnalyze & ResearchDevelopers

Pricing: free — Free with limitations · Visit website

HeyTensor is a web-based tool for calculating and debugging PyTorch tensor shapes. It supports over 14 layer types including Conv2d, Linear, LSTM, and more. Simply paste your error message to get instant fixes or use the calculator to explore different configurations.

Pros

  • Instantly fix shape errors
  • Supports multiple PyTorch layers
  • Works directly in your browser

Cons

  • Limited to PyTorch and TensorFlow
  • No advanced customization options
  • Free version may have limitations

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 align for multiplication.

Can I use this with TensorFlow models?

Yes, HeyTensor supports both PyTorch and TensorFlow.

Last updated: 2026-06-21