# Output of classifier as condition of generator in gan

**URL:** <https://discuss.pytorch.org/t/output-of-classifier-as-condition-of-generator-in-gan/144639>\
**Category:** vision\
**Created:** [February 21, 2022, 7:12am UTC](https://discuss.pytorch.org/t/output-of-classifier-as-condition-of-generator-in-gan/144639 "2022-02-21T07:12:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arpit\_Garg](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/arpit_garg/32/29496_2.png) [@Arpit\_Garg](https://discuss.pytorch.org/u/Arpit_Garg)\
**Post date:** [February 21, 2022, 7:12am UTC](https://discuss.pytorch.org/t/output-of-classifier-as-condition-of-generator-in-gan/144639/1 "2022-02-21T07:12:48Z")

</div>

I wanted to give an output of classifier CNN (softmax) as the input of generator in gan as the conditions. But I wanted to treat them as class weights, I am not sure how to do it?

([CP-GAN](https://takuhirok.github.io/CP-GAN/))
