-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Let Accelerator inherit from ABC to make sure abstractmethod takes effect #11521
Conversation
for more information, see https://pre-commit.ci
The failed test case means that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for working on this @chunyang-wen . Could you add an entry to the CHANGELOG since this may be a breaking change for people who write customized accelerator classes and who hadn't implemented the abstract methods?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
Thank you for the quick fix @chunyang-wen <3 |
What does this PR do?
ABC
in order to makeabstractmethod
to take effect. MakeAccelerator
inherit fromABC