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 find duplicates in qconfig #1155

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import Dict, Any, Tuple, Type, List, Union

from model_compression_toolkit.constants import FOUND_TF
from model_compression_toolkit.core.common.graph.base_node import BaseNode
import numpy as np

Expand Down Expand Up @@ -85,5 +84,7 @@ def is_match_type(self, _type: Type) -> bool:
Whether _type matches the self node type

"""
names_match = _type.__name__ == self.type.__name__ if FOUND_TF else False
return super().is_match_type(_type) or names_match
is_match = super().is_match_type(_type)
if "tf" in self.name:
return is_match or _type.__name__ == self.type.__name__
return is_match
Loading