nncf/experimental/tensorflow/graph/model_transformer.py
def transform(self, transformation_layout: TFTransformationLayoutV2) -> NNCFNetwork:
        """
        Applies transformations to the model.

        :param transformation_layout: An instance of `TransformationLayout` that
            includes a list of transformations to be applied to the NNCF network.
        :return: The transformed NNCF network.
        """
        for command in transformation_layout.transformations:
            if command.type == TransformationType.INSERT:
                self._model.insert_at_point(command.target_point, command.insertion_objects)
            elif command.type == TransformationType.REMOVE:
                # TODO(andrey-churkin): Add support
                pass
            else:
                raise ValueError(f'Transformation type {command.type} does not support.')

        return self._model

        Applies transformations to the model.

        :param transformation_layout: An instance of `TransformationLayout` that
            includes a list of transformations to be applied to the NNCF network.
        :return: The transformed NNCF network.
        
Applies transformations to the model.
Applies transformations to the model .
def transform(self, transformation_layout: TFTransformationLayoutV2) -> NNCFNetwork:
        for command in transformation_layout.transformations:
            if command.type == TransformationType.INSERT:
                self._model.insert_at_point(command.target_point, command.insertion_objects)
            elif command.type == TransformationType.REMOVE:
                pass
            else:
                raise ValueError(f'Transformation type {command.type} does not support.')
        return self._model
def transform ( self , transformation_layout : TFTransformationLayoutV2 ) -> NNCFNetwork : for command in transformation_layout . transformations : if command . type == TransformationType . INSERT : self . _model . insert_at_point ( command . target_point , command . insertion_objects ) elif command . type == TransformationType . REMOVE : pass else : raise ValueError ( f'Transformation type {command.type} does not support.' ) return self . _model
Applies transformations to the model.
Applies transformations to the model .
"""
        Applies transformations to the model.

        :param transformation_layout: An instance of `TransformationLayout` that
            includes a list of transformations to be applied to the NNCF network.
        :return: The transformed NNCF network.
        """ # TODO(andrey-churkin): Add support
The transformed NNCF network.
The transformed NNCF network .
self
transformation_layout
TFTransformationLayoutV2
An instance of `TransformationLayout` that
includes a list of transformations to be applied to the NNCF network.
An instance of ` TransformationLayout ` that includes a list of transformations to be applied to the NNCF network .