# No documentation of \`Tensor.shape\`?

**URL:** <https://discuss.pytorch.org/t/no-documentation-of-tensor-shape/16668>\
**Category:** Uncategorized\
**Created:** [April 19, 2018, 11:35am UTC](https://discuss.pytorch.org/t/no-documentation-of-tensor-shape/16668 "2018-04-19T11:35:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xingdong\_Zuo](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/x/4da419/32.png) [@Xingdong\_Zuo](https://discuss.pytorch.org/u/Xingdong_Zuo)\
**Post date:** [April 19, 2018, 11:35am UTC](https://discuss.pytorch.org/t/no-documentation-of-tensor-shape/16668/1 "2018-04-19T11:35:13Z")

</div>

When we define a Tensor, the `size()` is equivalent to `.shape`, i.e.

```auto
a = torch.Tensor([1, 2, 3])
assert a.size() == a.shape

```

I could not find the documentation about `.shape`
