illidanlab / dpgan

Source code of paper "Differentially Private Generative Adversarial Network"
66 stars 29 forks source link

Why select part of gradient? #1

Closed jyhong836 closed 5 years ago

jyhong836 commented 6 years ago

https://github.com/illidanlab/dpgan/blob/2d07b1b37f2091c7b1036ffbfeddabc094bbd793/wgan.py#L66

I am not familiar with DNN. Thus, I am not sure why here the gradient is sliced by one dimension?

jyhong836 commented 5 years ago

It is not part of the gradient, but the whole gradient. --- Xie