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

inference code #3

Open
godfunc123 opened this issue Jun 13, 2023 · 2 comments
Open

inference code #3

godfunc123 opened this issue Jun 13, 2023 · 2 comments

Comments

@godfunc123
Copy link

Is there a code for the inference ?especially for the experiment analyzed the average inference time and GFLOPs, Thank you

@FengheTan9
Copy link
Owner

FengheTan9 commented Jun 15, 2023

Thanks for using our code.
You can use the following code for analyzing:
from fvcore.nn import FlopCountAnalysis, parameter_count_table
flops = FlopCountAnalysis(model, input)
or
from thop import profile
flops, params = profile(model, inputs=(input, ))

@godfunc123
Copy link
Author

Thank you

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