Skip to content

Commit

Permalink
type
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderDokuchaev committed Dec 24, 2024
1 parent 79ac83b commit cba3aba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nncf/common/graph/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def node_name(self) -> NNCFNodeName:
return cast(NNCFNodeName, self._attributes[NNCFNode.NODE_NAME_ATTR])

@property
def metatype(self) -> OperatorMetatype:
def metatype(self) -> Type[OperatorMetatype]:
return cast(OperatorMetatype, self._attributes[NNCFNode.METATYPE_ATTR])

@property
Expand Down
6 changes: 3 additions & 3 deletions nncf/common/graph/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# limitations under the License.

from functools import partial
from typing import List, Set, Tuple, Union
from typing import List, Set, Tuple, Type, Union

from nncf.common.graph import NNCFGraph
from nncf.common.graph import NNCFNode
Expand Down Expand Up @@ -90,8 +90,8 @@ def get_split_axis(input_shapes: List[List[int]], output_shapes: List[List[int]]

def get_number_of_quantized_ops(
graph: NNCFGraph,
quantizer_metatypes: List[OperatorMetatype],
quantizable_metatypes: List[OperatorMetatype],
quantizer_metatypes: List[Type[OperatorMetatype]],
quantizable_metatypes: List[Type[OperatorMetatype]],
) -> int:
"""
Returns the number of quantized operations in the graph.
Expand Down

0 comments on commit cba3aba

Please sign in to comment.