@@ -189,14 +189,31 @@ def create_nncf_graph(model: ov.Model) -> NNCFGraph:
189189 GraphConverter ._add_edges_to_nncf_graph (model , nncf_graph )
190190 return nncf_graph
191191
192- def _set_non_weighted_layer_attributes (node : ov .Node , metatype : OVOpMetatype , nncf_graph : NNCFGraph ):
192+ def _set_non_weighted_layer_attributes (node : ov .Node , metatype : OVOpMetatype , nncf_graph : NNCFGraph ) -> None :
193+ """
194+ Sets layer attributes for a non weighted node.
195+
196+ :param node: Target node.
197+ :param metatype: Target node metatype.
198+ :param nncf_graph: NNCFGraph to work with.
199+ """
193200 if metatype == OVConcatMetatype :
194201 nncf_node = nncf_graph .get_node_by_name (node .get_friendly_name ())
195202 nncf_node .layer_attributes = OVLayerAttributes (
196203 {}, MultipleInputLayerAttributes (axis = node .get_axis (), num_inputs = len (node .inputs ()))
197204 )
198205
199- def _set_weighted_layer_attributes (node : ov .Node , metatype : OVOpMetatype , nncf_graph : NNCFGraph , visited : Set [str ]):
206+ def _set_weighted_layer_attributes (
207+ node : ov .Node , metatype : OVOpMetatype , nncf_graph : NNCFGraph , visited : Set [str ]
208+ ) -> None :
209+ """
210+ Sets layer attributes for a weighted node.
211+
212+ :param node: Target node.
213+ :param metatype: Target node metatype.
214+ :param nncf_graph: NNCFGraph to work with.
215+ :param visited: Set with node names that were already processed by the GraphConverter.
216+ """
200217 const_attrs , act_attrs = {}, {}
201218 for inp in GraphConverter ._filter_weight_input_ports (node .inputs (), metatype ):
202219 inp_name = inp .get_source_output ().get_node ().get_friendly_name ()
0 commit comments