neural_compressor.strategy.utils.tuning_sampler
Tuning sampler.
Classes
Not displayed in API Docs. |
|
Not displayed in API Docs. |
|
Not displayed in API Docs. |
|
Not displayed in API Docs. |
|
Not displayed in API Docs. |
|
Not displayed in API Docs. |
|
Not displayed in API Docs. |
|
Not displayed in API Docs. |
|
Not displayed in API Docs. |
|
Not displayed in API Docs. |
Module Contents
- class neural_compressor.strategy.utils.tuning_sampler.TuningOrder[source]
Not displayed in API Docs.
- class neural_compressor.strategy.utils.tuning_sampler.TuningSampler(tuning_space: neural_compressor.strategy.utils.tuning_space.TuningSpace, tuning_order_lst: List[TuningOrder], initial_op_tuning_cfg: Dict, kwargs: Dict = {})[source]
Not displayed in API Docs.
Basic class of tuning sampler.
- class neural_compressor.strategy.utils.tuning_sampler.ModelWiseTuningSampler(tuning_space: neural_compressor.strategy.utils.tuning_space.TuningSpace, tuning_items_priority: List[str], tuning_order_lst: List[TuningOrder], op_dtype_dict: Dict[tuple, str], initial_op_tuning_cfg: Dict[tuple, neural_compressor.strategy.utils.tuning_structs.OpTuningConfig])[source]
Not displayed in API Docs.
- class neural_compressor.strategy.utils.tuning_sampler.OpTypeWiseTuningSampler(tuning_space: neural_compressor.strategy.utils.tuning_space.TuningSpace, tuning_items_priority: List[str], tuning_order_lst: List[TuningOrder], op_dtype_dict: Dict[tuple, str], initial_op_tuning_cfg: Dict[tuple, neural_compressor.strategy.utils.tuning_structs.OpTuningConfig])[source]
Not displayed in API Docs.
- class neural_compressor.strategy.utils.tuning_sampler.OpWiseTuningSampler(tuning_space: neural_compressor.strategy.utils.tuning_space.TuningSpace, tuning_items_priority: List[str], tuning_order_lst: List[TuningOrder], op_dtype_dict: Dict[tuple, str], initial_op_tuning_cfg: Dict)[source]
Not displayed in API Docs.
- class neural_compressor.strategy.utils.tuning_sampler.FallbackTuningSampler(tuning_space: neural_compressor.strategy.utils.tuning_space.TuningSpace, tuning_order_lst: List[TuningOrder], initial_op_tuning_cfg: Dict[Tuple, Any], op_dtypes: Dict[Tuple | Tuple[Tuple], str], accumulate: bool, skip_first: bool = True)[source]
Not displayed in API Docs.
- class neural_compressor.strategy.utils.tuning_sampler.LowerBitsSampler(tuning_space: neural_compressor.strategy.utils.tuning_space.TuningSpace, tuning_order_lst: List[TuningOrder], initial_op_tuning_cfg: Dict[tuple, Any], op_dtypes: Dict[str, str], accumulate: bool, skip_first: bool = True)[source]
Not displayed in API Docs.
- class neural_compressor.strategy.utils.tuning_sampler.BlockFallbackTuningSampler(tuning_space: neural_compressor.strategy.utils.tuning_space.TuningSpace, tuning_order_lst: List[TuningOrder], initial_op_tuning_cfg: Dict[tuple, Any], op_block_lst: List[List[tuple]], accumulate: bool, target_dtype: str)[source]
Not displayed in API Docs.
- class neural_compressor.strategy.utils.tuning_sampler.SmoothQuantSampler(tuning_space: neural_compressor.strategy.utils.tuning_space.TuningSpace, tuning_order_lst: List[TuningOrder], initial_op_tuning_cfg: Dict, alpha_list: List[float], kwargs: Dict = {})[source]
Not displayed in API Docs.
- class neural_compressor.strategy.utils.tuning_sampler.WeightOnlyQuantSampler(tuning_space: neural_compressor.strategy.utils.tuning_space.TuningSpace, tuning_order_lst: List[TuningOrder], initial_op_tuning_cfg: Dict)[source]
Not displayed in API Docs.