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

How to exclude flops of 1st input? #211

Open
Angiemaster opened this issue Sep 3, 2023 · 1 comment
Open

How to exclude flops of 1st input? #211

Angiemaster opened this issue Sep 3, 2023 · 1 comment

Comments

@Angiemaster
Copy link

I wanna exclude the t=1 for the total_ops & total_params, just need t=2~5, could you help me with it? thank you
total_ops += m.total_ops
total_params += m.total_params

My input is below,
t = 5
A= torch.rand(1, t, 3, LR_h, LR_w).cuda()
B= torch.rand(1, t, 3, FV_h, FV_w).cuda()
macs, params = profile_origin(model, inputs=(A,B))

@ivanstepanovftw
Copy link

Ask here: chat.openai.com

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