Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GAN training is too slow. #29

Open
adrianchiyuk opened this issue Jun 8, 2019 · 0 comments
Open

GAN training is too slow. #29

adrianchiyuk opened this issue Jun 8, 2019 · 0 comments

Comments

@adrianchiyuk
Copy link

adrianchiyuk commented Jun 8, 2019

After pretraining the generator and discriminator, the gan_training is too slow even for 1K training data.

gan_train.py line 102

where the get_reward takes the most time.

The step is
rewards = generator.get_reward(x=x,
x_to_maxlen=x_to_maxlen,
y_sample=y_sample_dealed,
y_sample_mask=y_sample_mask,
rollnum=config.rollnum,
disc=discriminator,
max_len=config.discriminator.dis_max_len,
bias_num=config.bias_num,
data_util=du)

May I ask why this happens ?

Thank you in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant