Skip to content

Conversation

@kip-cxj
Copy link
Contributor

@kip-cxj kip-cxj commented Jan 15, 2026

Motivation

torch._C._host_emptyCache() is not supported on NPU, so we call gc.collect() to empty host cache.

else:
import gc

gc.collect()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plz add comments directly upon this line

# torch._C._host_emptyCache() is not supported on NPU, so we call gc.collect() to empty host cache.

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

Successfully merging this pull request may close these issues.

2 participants