Skip to content

Commit 605aac1

Browse files
committed
pytorch tests passed
1 parent 44383dd commit 605aac1

File tree

1 file changed

+13
-14
lines changed
  • nncf/quantization/algorithms/weight_compression

1 file changed

+13
-14
lines changed

nncf/quantization/algorithms/weight_compression/backend.py

+13-14
Original file line numberDiff line numberDiff line change
@@ -101,20 +101,6 @@ def transform_model(
101101
:return: The transformed model.
102102
"""
103103

104-
@staticmethod
105-
@abstractmethod
106-
def dump_parameters(
107-
model: TModel, parameters: Dict, algo_name: Optional[str] = "quantization", path: Optional[List] = None
108-
) -> None:
109-
"""
110-
Dumps the given parameters into Model's meta section.
111-
112-
:param model: ov.Model instance.
113-
:param algo_name: Name of the algorithm to which the parameters refer.
114-
:param parameters: Incoming dictionary with parameters to save.
115-
:param path: Optional list of the paths.
116-
"""
117-
118104
@staticmethod
119105
@abstractmethod
120106
def target_point(target_type: TargetType, target_node_name: str, port_id: int) -> TargetPoint:
@@ -149,3 +135,16 @@ def get_activation_port_id(node: NNCFNode, graph: NNCFGraph) -> int:
149135
:param graph: NNCFGraph instance with the node.
150136
:return: target input port id.
151137
"""
138+
139+
@staticmethod
140+
def dump_parameters(
141+
model: TModel, parameters: Dict, algo_name: Optional[str] = "quantization", path: Optional[List] = None
142+
) -> None:
143+
"""
144+
Dumps the given parameters into Model's meta section.
145+
146+
:param model: ov.Model instance.
147+
:param algo_name: Name of the algorithm to which the parameters refer.
148+
:param parameters: Incoming dictionary with parameters to save.
149+
:param path: Optional list of the paths.
150+
"""

0 commit comments

Comments
 (0)