---
title: "Discussion on \"Torch.unsqueeze and squeeze\" | Hashnode"
description: "Discussion on \"Torch.unsqueeze and squeeze\". Learn when and how to use `torch.unsqueeze` and `torch.squeeze` to manipulate tensor dimensions in PyTorch effectively"
url: "https://hashnode.com/posts/torchunsqueeze-and-squeeze/6820a52c714aea9e0ed77890"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Torch.unsqueeze and squeeze](https://roach-wiki.com/torchunsqueeze-and-squeeze?utm_source=hashnode&utm_medium=feed)

Learn when and how to use \`torch.unsqueeze\` and \`torch.squeeze\` to manipulate tensor dimensions in PyTorch effectively

May 11, 2025 · 2 min read · roach-wiki.com  
Read the article

-   [#squeeze](https://hashnode.com/tag/squeeze)
-   [#unsqueeze](https://hashnode.com/tag/unsqueeze)
-   [#pytorch](https://hashnode.com/tag/pytorch)

## Written by

[roach](https://hashnode.com/@dev-roach)

@dev-roach · Seoul, KR

  
[View profile](https://hashnode.com/@dev-roach)

software enginner

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
