# GANs specialization

**URL:** <https://community.deeplearning.ai/t/gans-specialization/881430>\
**Category:** Build Basic Generative Adversarial Networks\
**Tags:** week-module-4\
**Created:** [October 14, 2025, 5:49pm UTC](https://community.deeplearning.ai/t/gans-specialization/881430 "2025-10-14T17:49:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SASWATA\_MAITY](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@SASWATA\_MAITY](https://community.deeplearning.ai/u/SASWATA_MAITY)\
**Post date:** [October 14, 2025, 5:49pm UTC](https://community.deeplearning.ai/t/gans-specialization/881430/1 "2025-10-14T17:49:54Z")

</div>

week 4 course 1

model is running but the grader output gives

> Cell #UNQ\_C4. Can’t compile the student’s code. Error: RuntimeError(“Expected object of scalar type Float but got scalar type Long for sequence element 1 in sequence argument at position #1 ‘tensors’”,)

i tried making ALL tensors in the cell to float but the problem remains BUILDUING CONDITIONAL GAN

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [October 14, 2025, 7:29pm UTC](https://community.deeplearning.ai/t/gans-specialization/881430/2 "2025-10-14T19:29:54Z")

</div>

This is a known problem that is caused by the grader using an older version of `torch`. [Here’s a thread](https://community.deeplearning.ai/t/cant-compile-the-students-code-runtimeerror/289318/7) which discusses in more detail.

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [October 14, 2025, 7:33pm UTC](https://community.deeplearning.ai/t/gans-specialization/881430/3 "2025-10-14T19:33:07Z")

</div>

Also note that the Conditional GAN is not Week 1, but Week 4. I’ll edit the title to change the tag for you.

---

<div class="post-metadata">

**Author:** ![SASWATA\_MAITY](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@SASWATA\_MAITY](https://community.deeplearning.ai/u/SASWATA_MAITY)\
**Post date:** [October 15, 2025, 4:11am UTC](https://community.deeplearning.ai/t/gans-specialization/881430/4 "2025-10-15T04:11:56Z")

</div>

thank you

---

<div class="post-metadata">

**Author:** ![SASWATA\_MAITY](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@SASWATA\_MAITY](https://community.deeplearning.ai/u/SASWATA_MAITY)\
**Post date:** [October 15, 2025, 9:11am UTC](https://community.deeplearning.ai/t/gans-specialization/881430/5 "2025-10-15T09:11:42Z")

</div>

the problem has ben solved
