---
title: "Discussion on \"torch.tensor\" | Hashnode"
description: "Discussion on \"torch.tensor\". While browsing a project's code, I found a usage example of torch.Tensor([]). As far as I know, We can use a numpy array to initialize a torch tensor. So I went into the Pytorch official references.\nThe official docs say a tensor can be constructed w..."
url: "https://hashnode.com/posts/torchtensor/66135c1826ca844f10041a7c"
---

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

Discussion

# [torch.tensor](https://greybird.hashnode.dev/torchtensor?utm_source=hashnode&utm_medium=feed)

While browsing a project's code, I found a usage example of torch.Tensor(\[\]). As far as I know, We can use a numpy array to initialize a torch tensor. So I went into the Pytorch official references. The official docs say a tensor can be constructed w...

Apr 8, 2024 · 1 min read · greybird.hashnode.dev  
Read the article

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

## Written by

[Winston Liu](https://hashnode.com/@greybird)

@greybird

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

Learn java with public

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
