Replies: 1 comment 6 replies
-
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Some of our transforms use
torch.nn.functional.interpolate
under the hood, which will use multiprocessing by default.The following code snippet uses 800% of my CPU:
However, uncommenting the
torch.torch.set_num_threads(1)
line limits CPU usage to 100%.I think this is something we need to think about. Otherwise, if we have:
then we would be doubling down on concurrency, as there would be multiprocessing due to
interpolate
and from the dataloader workers.Beta Was this translation helpful? Give feedback.
All reactions