-
Notifications
You must be signed in to change notification settings - Fork 14
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
some questions about the code #1
Comments
Hey @Sudsakorn123! The following should hopefully answer all of your questions.
I will leave this issue open until I've added back in the |
I want to ask something related to runtime. Is it the case that one step in an epoch takes around 1m30s for you as well? |
Hey @ptpam, with batch sizes 128, it takes about 30-40 seconds to do a step of adversarial training (so doing PGD for at most 50 iterations on a single minibatch with the default parameters in |
Recently, I have read this paper and code. However, I have some questions about them. Firstly, I can't find details about the TYPE_CONJUGATE branch, especially the early termination criterion. Moreover, there is no such a function called
eval_z
. Finally, I can't understand the initial value ofalpha
andbeta
. Why do you set this as the initial value? And in the TYPE_CONJUGATE branch, you added 0.5 on the original basis.And in
alpha = torch.log(X.new_ones(*size) / m) beta = torch.log(X.new_ones(*size) / m) exp_alpha = torch.exp(-alpha) exp_beta = torch.exp(-beta)
, there is a negative sign. However, in the Algoritom2, it's a positive sign. I have tried to set it as a positive sign, it still works. Is that means the initial values will have few impacts on the results?The text was updated successfully, but these errors were encountered: