# DCGAN performance in PyTorch

**URL:** <https://discuss.pytorch.org/t/dcgan-performance-in-pytorch/46034>\
**Category:** Uncategorized\
**Created:** [May 23, 2019, 2:09pm UTC](https://discuss.pytorch.org/t/dcgan-performance-in-pytorch/46034 "2019-05-23T14:09:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![reddy](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/reddy/32/9845_2.png) [@reddy](https://discuss.pytorch.org/u/reddy)\
**Post date:** [May 23, 2019, 2:09pm UTC](https://discuss.pytorch.org/t/dcgan-performance-in-pytorch/46034/1 "2019-05-23T14:09:58Z")

</div>

Hi,

I converted a TensorFlow implementation of DCGAN to PyTorch and observe it is ~4x slower. Couple of comments:

1. What is the performance expectation of PyTorch vs TensorFlow for GANs in general?
2. Do we have any benchmarks?

Thanks,  
Rohith

---

<div class="post-metadata">

**Author:** ![AlbertZhang](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/albertzhang/32/16377_2.png) [@AlbertZhang](https://discuss.pytorch.org/u/AlbertZhang)\
**Post date:** [May 23, 2019, 9:04pm UTC](https://discuss.pytorch.org/t/dcgan-performance-in-pytorch/46034/2 "2019-05-23T21:04:30Z")

</div>

Please refer to the official [dcgan](https://github.com/pytorch/examples/tree/master/dcgan) example of PyTorch.
