znxlwm / pytorch-generative-model-collections

Collection of generative models in Pytorch version.
2.59k stars 546 forks source link

Why there is no detach() after the generator? #4

Open ToTheBeginning opened 6 years ago

ToTheBeginning commented 6 years ago

I see many code like this:fake_data = G(noise).detach()

But in your most code, there is no detach, so is it just ok to omit it ?

aidiary commented 6 years ago

https://github.com/pytorch/examples/issues/116