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

[Good First Issue] [NNCF] Make NNCF common utils code pass mypy checks #2491

Open
vshampor opened this issue Jan 25, 2024 · 23 comments
Open
Assignees
Labels
good first issue Good for newcomers

Comments

@vshampor
Copy link
Contributor

This is exactly like #2495 (see the description and tasks there), but the target code path for this one is nncf/common/utils instead of nncf/common/graph.

@tvilight4
Copy link

.take

Copy link

Thank you for looking into this issue! Please let us know if you have any questions or require any help.

@andrei-kochin andrei-kochin added the good first issue Good for newcomers label Jan 26, 2024
@ishan121028
Copy link

.take

Copy link

github-actions bot commented Feb 2, 2024

Thanks for being interested in this issue. It looks like this ticket is already assigned to a contributor. Please communicate with the assigned contributor to confirm the status of the issue.

@tvilight4
Copy link

I am currently working on the issue. Facing a few problems but trying to solve them..will give the updates in a few days

@p-wysocki
Copy link
Contributor

Hello @tvilight4, is there anything we can help you with?

@ilya-lavrenov ilya-lavrenov transferred this issue from openvinotoolkit/openvino Feb 20, 2024
@tvilight4
Copy link

@p-wysocki I am new to type hinting and so figuring out the solution is taking time, Do the location of the function calls matter in the codebase? If yes it would be great if you could tell me where the function is_tensorflow_model(model: TModel) being called...as
nncf/common/utils/backend.py:73: error: Cannot find implementation or library stub for module named "tensorflow"
is the first mypy error which i am trying to solve.

@p-wysocki
Copy link
Contributor

Hello @tvilight4, usually the best way to fix mypy errors is to google them - quite often you even can find copy and paste fixes for the errors. It seems that particular one could be changed by modifying the import line: https://stackoverflow.com/questions/68695851/mypy-cannot-find-implementation-or-library-stub-for-module

@p-wysocki
Copy link
Contributor

Hello @tvilight4, do you need any help?

@tvilight4
Copy link

@p-wysocki I a working on it but will need time till 20 march due to my university exams going on.

@p-wysocki
Copy link
Contributor

Hello @tvilight4, are you still working on this?

@tvilight4
Copy link

Sorry @p-wysocki I have not been able to work on this issue due to other urgent commitments.
I would opt to unassign myself for now so that someone else can take it up. If I get some solution, I will inform you. I am extremely sorry for the delay and inconvenience caused.

@p-wysocki
Copy link
Contributor

p-wysocki commented Apr 5, 2024

Don't worry, there are no deadlines in Good First Issues, we're just looking for abandoned tasks for other people to pick up. :) For now I'm reopening the task, but feel free to pick up something else or even this one from our board as soon as you have some time!

cc @vshampor could you please reopen the task?

@anzr299
Copy link
Contributor

anzr299 commented Apr 9, 2024

I would like to take this issue when it opens @p-wysocki

@anzr299
Copy link
Contributor

anzr299 commented Apr 9, 2024

.take

Copy link

github-actions bot commented Apr 9, 2024

Thanks for being interested in this issue. It looks like this ticket is already assigned to a contributor. Please communicate with the assigned contributor to confirm the status of the issue.

@alexsu52 alexsu52 assigned anzr299 and unassigned tvilight4 Apr 18, 2024
@anzr299 anzr299 removed their assignment Apr 18, 2024
@anzr299
Copy link
Contributor

anzr299 commented Apr 18, 2024

.take

Copy link

Thank you for looking into this issue! Please let us know if you have any questions or require any help.

@anzr299
Copy link
Contributor

anzr299 commented Apr 18, 2024

@alexsu52 I am trying to define the _registry_dict dictionary in the Registry class. I have decided to go ahead with a general object type for both the keys and values. I am facing some errors in nncf\common\graph\patterns\manager.py wherein the expected type is Dict[HWFusedPatternNames, Callable[[], GraphPattern] for the registry dict. Casting it to the type expected from the general object typing works. I was wondering if casting would be accepted as a solution?

@alexsu52
Copy link
Contributor

@anzr299, casting is applicable solution for this case. Let's discuss this in more detail in PR.

@anzr299
Copy link
Contributor

anzr299 commented Apr 19, 2024

Sure, just to clarify, I think the issue referred to by @MaximProshin is #2637.

@p-wysocki
Copy link
Contributor

Hello @anzr299, are you still working on that issue? Do you need any help?

@anzr299
Copy link
Contributor

anzr299 commented May 7, 2024

Hi @p-wysocki, I was busy for the past few days. I will continue working on this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: Assigned
Development

No branches or pull requests

7 participants