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

It seams slowly because of some functions running on CPU #44

Open
troycjj opened this issue Jan 22, 2024 · 0 comments
Open

It seams slowly because of some functions running on CPU #44

troycjj opened this issue Jan 22, 2024 · 0 comments

Comments

@troycjj
Copy link

troycjj commented Jan 22, 2024

y_hat_list = [ [model(xb.to(dev), n_wins.to(dev)).cpu().numpy(), yb.cpu().numpy()] for xb, yb, (idx, n_wins) in dl]

This function are running on cpu, cost my 60% CPU(8 core 16 processors R5 5700X)

I predict a 10 seconds audio on RTX4060TI used 0.26 seconds

cost in neural network less than 0.05 seconds
cost more than 0.2 seconds in DataLoader

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

1 participant