nncf/experimental/torch/nas/bootstrapNAS/elasticity/elastic_width.py
def load_state(self, state: Dict[str, Any]) -> None:
        """
        Initializes object from the state.

        :param state: Output of `get_state()` method.
        """
        params_from_state = state[SingleElasticityBuilder._state_names.ELASTICITY_PARAMS]
        params = ElasticWidthParams.from_state(params_from_state)
        if self._params and self._params != params:
            nncf_logger.warning(
                'Different elasticity parameters were provided in two places: on init and on loading '
                'state. The one from state is taken by ignoring the ones from init.')
        self._params = params
        self._grouped_node_names_to_prune = state[self._state_names.GROUPED_NODE_NAMES_TO_PRUNE]

        Initializes object from the state.

        :param state: Output of `get_state()` method.
        
Initializes object from the state.
Initializes object from the state .
def load_state(self, state: Dict[str, Any]) -> None:
        params_from_state = state[SingleElasticityBuilder._state_names.ELASTICITY_PARAMS]
        params = ElasticWidthParams.from_state(params_from_state)
        if self._params and self._params != params:
            nncf_logger.warning(
                'Different elasticity parameters were provided in two places: on init and on loading '
                'state. The one from state is taken by ignoring the ones from init.')
        self._params = params
        self._grouped_node_names_to_prune = state[self._state_names.GROUPED_NODE_NAMES_TO_PRUNE]
def load_state ( self , state : Dict [ str , Any ] ) -> None : params_from_state = state [ SingleElasticityBuilder . _state_names . ELASTICITY_PARAMS ] params = ElasticWidthParams . from_state ( params_from_state ) if self . _params and self . _params != params : nncf_logger . warning ( 'Different elasticity parameters were provided in two places: on init and on loading ' 'state. The one from state is taken by ignoring the ones from init.' ) self . _params = params self . _grouped_node_names_to_prune = state [ self . _state_names . GROUPED_NODE_NAMES_TO_PRUNE ]
Initializes object from the state.
Initializes object from the state .
"""
        Initializes object from the state.

        :param state: Output of `get_state()` method.
        """
self
state
Dict[str, Any]
Output of `get_state()` method.
Output of ` get_state () ` method .