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

fix NotImplementedError: get_type is not implemented #2133

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

xin3he
Copy link
Contributor

@xin3he xin3he commented Feb 28, 2025

Type of Change

bug fix

Description

blocking print after prepare.

@xin3he xin3he requested a review from yiliu30 March 1, 2025 10:10
Copy link
Contributor

@nirda7 nirda7 left a comment

Choose a reason for hiding this comment

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

This is not a valid fix.
Please take a look at my comment in here:
https://jira.habana-labs.com/browse/SW-220806

you cannot have abstract methods or even class methods that throw exceptions in the base class that none of the classes that inherits from it implements.

If you want the refactor to stay - you should implement it in all classes in helper_modules.py
and only then make sure all tests with their new patched modules also implement them...

@yiliu30
Copy link
Contributor

yiliu30 commented Mar 3, 2025

I think we should implement get_type and get_module_type for the existing patched modules in helper_module.py as well. Please refer the ticket for more details https://jira.habana-labs.com/browse/SW-220806

Signed-off-by: Xin He <xinhe3@habana.ai>
@xin3he xin3he requested a review from nirda7 March 17, 2025 03:17
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.

4 participants