---
title: "Discussion on \"What is PyTorch .detach() method?\" | Hashnode"
description: "Discussion on \"What is PyTorch .detach() method?\". What is PyTorch .detach() method?\nPyTorch's detach method works on the tensor class. \ntensor.detach() creates a tensor that shares storage with tensor that does not require gradient. tensor.clone() creates a copy of tensor that imitates the original ..."
url: "https://hashnode.com/posts/pytorch-detach/5f91a47dc626a0545fb6124f"
---

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

Discussion

# [What is PyTorch .detach() method?](https://publications.theroyakash.com/pytorch-detach?utm_source=hashnode&utm_medium=feed)

What is PyTorch .detach() method? PyTorch's detach method works on the tensor class. tensor.detach() creates a tensor that shares storage with tensor that does not require gradient. tensor.clone() creates a copy of tensor that imitates the original ...

Oct 22, 2020 · 1 min read · publications.theroyakash.com  
Updated Nov 2, 2020  
Read the article

-   [#python3](https://hashnode.com/tag/python3)
-   [#pytorch](https://hashnode.com/tag/pytorch)
-   [#deep-learning](https://hashnode.com/tag/deep-learning)
-   [#machine-learning](https://hashnode.com/tag/machine-learning)

## Written by

[theroyakash](https://hashnode.com/@theroyakash)

@theroyakash · Chennai, India

  
[View profile](https://hashnode.com/@theroyakash)

Computer Scientist

I go by theroyakash on the internet. I am a computer scientist, with research in high performance algorithms, data structures, distributed systems, and beyond. See my work searching google for theroyakash.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
