Skip to content

[hotfix] avoid conflict of meta registry with torch 1.13.0.#1530

Merged
FrankLeeeee merged 2 commits intohpcaitech:mainfrom
super-dainiu:hotfix/meta_registry
Sep 1, 2022
Merged

[hotfix] avoid conflict of meta registry with torch 1.13.0.#1530
FrankLeeeee merged 2 commits intohpcaitech:mainfrom
super-dainiu:hotfix/meta_registry

Conversation

@super-dainiu
Copy link
Copy Markdown
Contributor

When I experiment Colossal-AI's meta profiler on PyTorch 1.13.0 (nightly), an error occurred because of duplicate registration. So I used the try-except statement to ignore the conflicts.
This will not cause any error, so it can be safely merged.

Comment on lines +23 to +26
try:
meta_lib.impl(name, f)
except:
pass
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Change happens only here. I don't know why but the pre-commit hook reformatted all of my code...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No worry, pre-commit hook just standardized your code format.

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