Skip to content
New issue

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

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

Already on GitHub? # to your account

Random permutation of grads preceeds iteration over grads #20

Open
PierreQuinton opened this issue Jan 14, 2024 · 0 comments
Open

Random permutation of grads preceeds iteration over grads #20

PierreQuinton opened this issue Jan 14, 2024 · 0 comments

Comments

@PierreQuinton
Copy link

In the paper, the algorithm is the following:
image

I think this means that for every $i$, we randomly shuffle the order of the grads. In the code, the shuffling happens before iteration over the $i$, happening at the following line:
https://github.com/tianheyu927/PCGrad/blob/c5fbd7c856526373828074f06875230f7f3ee79e/PCGrad_tf.py#L36C11-L36C11

Would it be possible to know which of the two is supposed to be? And also, is this the code that was used for results of the paper?

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

No branches or pull requests

1 participant