# Issue in printing model summary due to AttributeError: 'tuple' object has no attribute 'size'

**URL:** <https://discuss.pytorch.org/t/issue-in-printing-model-summary-due-to-attributeerror-tuple-object-has-no-attribute-size/116155>\
**Category:** vision\
**Created:** [March 27, 2021, 7:40am UTC](https://discuss.pytorch.org/t/issue-in-printing-model-summary-due-to-attributeerror-tuple-object-has-no-attribute-size/116155 "2021-03-27T07:40:15Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [April 2, 2021, 6:52pm UTC](https://discuss.pytorch.org/t/issue-in-printing-model-summary-due-to-attributeerror-tuple-object-has-no-attribute-size/116155/4 "2021-04-02T18:52:02Z")

</div>

I think the “fix” is to use the package from the forked repository:

```auto
pip install torchinfo

```

```python
from torchinfo import summary

model = ConvNet()
batch_size = 16
summary(model, input_size=(batch_size, 1, 28, 28))

```

---

_[View the full topic](https://discuss.pytorch.org/t/issue-in-printing-model-summary-due-to-attributeerror-tuple-object-has-no-attribute-size/116155)._
