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

Why forward the model for 50 times #5

Open
Zhaoyi-Yan opened this issue Jul 11, 2023 · 1 comment
Open

Why forward the model for 50 times #5

Zhaoyi-Yan opened this issue Jul 11, 2023 · 1 comment

Comments

@Zhaoyi-Yan
Copy link

Hi, it's interesting here:

RepAdapter/utils.py

Lines 38 to 39 in 9d9e4fc

for i in range(50):
model(x)
, any insights?

@luogen1996
Copy link
Owner

This function is borrowed from here, which is a common practice in image classification. I guess that it is used to optimize the utilization of the GPU cache through multiple runs.

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

2 participants