MCPcopy Create free account

hub / github.com/intel/neural-compressor / types & classes

Types & classes839 in github.com/intel/neural-compressor

↓ 195 callersClassDummyDataset
Dataset used for dummy data generation. This Dataset is to construct a dataset from a specific shape. The value range is calculated from: low
neural_compressor/tensorflow/utils/data.py:389
↓ 190 callersClassBaseDataLoader
Base class for TF DataLoaders. _generate_dataloader is needed to create a dataloader object from the general params like batch_size and sampl
neural_compressor/tensorflow/utils/data.py:232
↓ 79 callersClassModel
A wrapper to construct a Neural Compressor TF Model.
neural_compressor/tensorflow/utils/model.py:50
↓ 78 callersClassGraphAnalyzer
Tensorflow Graph Analyzer class which implemented under singleton mode. This class provides the following API: * Analyze the graph * Anal
neural_compressor/tensorflow/quantization/utils/graph_util.py:34
↓ 56 callersClassStaticQuantConfig
Config class for tf static quantization.
neural_compressor/tensorflow/quantization/config.py:57
↓ 49 callersClassRTNConfig
Config class for round-to-nearest weight-only quantization.
neural_compressor/torch/quantization/config.py:119
↓ 47 callersClassAutoRoundConfig
Config class for AUTOROUND. AUTOROUND: Optimize Weight Rounding via Signed Gradient Descent for the Quantization of LLMs. https://arxiv.org/a
neural_compressor/torch/quantization/config.py:834
↓ 41 callersClassStaticQuantConfig
Config class for JAX Static quantization. Static quantization applies quantization to weights offline and activations during runtime using pr
neural_compressor/jax/quantization/config.py:196
↓ 38 callersClassModuleInfo
Configures a relation between a ModuleType key (from `_mod_types` dict in `common.py`) to a PatchedModule class.
neural_compressor/torch/algorithms/fp8_quant/model_configs.py:38
↓ 32 callersClassScaleMethodConfig
neural_compressor/torch/algorithms/fp8_quant/_core/scale_methods/scale_method_config.py:69
↓ 29 callersClassModuleConfig
Used to encapsulate measure/quant data and consumed by ModuleExtraConfig(s) 2 use cases: 1. Hold the calculated scales per op-tensor
neural_compressor/torch/algorithms/fp8_quant/model_configs.py:58
↓ 27 callersClassTuningConfig
Config for auto tuning pipeline. Examples: from neural_compressor.torch.quantization import TuningConfig tune_config = TuningConf
neural_compressor/common/base_tuning.py:364
↓ 24 callersClassFP8Config
Config class for FP8 quantization.
neural_compressor/torch/quantization/config.py:1744
↓ 24 callersClassGPTQConfig
Config class for GPTQ. GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers. https://arxiv.org/abs/2210.17323
neural_compressor/torch/quantization/config.py:322
↓ 21 callersClassUnpicklingError
This exception is raised when there is a problem unpickling an object, such as a security violation. Note that other exceptions may also be raise
neural_compressor/torch/algorithms/layer_wise/modified_pickle.py:102
↓ 20 callersClassModel
Base model class used to obtain the model (and perform any necessary operations to make it usable)
examples/tensorflow/object_detection/ssd_mobilenet_v1/quantization/ptq/prepare_model.py:16
↓ 19 callersClassStaticQDQLayer
Layer that applies static quantize-dequantize to activations.
neural_compressor/jax/quantization/layers_static.py:156
↓ 17 callersClassLogger
Logger class.
neural_compressor/common/utils/logger.py:50
↓ 16 callersClassPicklingError
This exception is raised when an unpicklable object is passed to the dump() method.
neural_compressor/torch/algorithms/layer_wise/modified_pickle.py:96
↓ 16 callersClassTensorQuantizer
Tensor quantizer module.
neural_compressor/torch/algorithms/qat/tensor_quantizer.py:31
↓ 15 callersClassFakeAlgoConfig
Config class for fake algo.
test/common/test_common.py:111
↓ 14 callersClassAWQConfig
Config class for AWQ. AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration. https://arxiv.org/abs/2306.00978
neural_compressor/torch/quantization/config.py:525
↓ 13 callersClassFuseGeluOptimizer
Fuse Sqrt + RealDiv + Erf + AddV2 + Mul + Mul into Gelu op.
neural_compressor/tensorflow/quantization/utils/graph_rewriter/generic/fuse_gelu.py:27
↓ 13 callersClassModuleType
Describes the module's tensor related structure for quantization. self.num_inputs - Number inputs to be quantizeds (e.g. input of Linear).
neural_compressor/torch/algorithms/fp8_quant/model_configs.py:92
↓ 12 callersClassQTensorConfig
Configuration class for quantized tensors.
neural_compressor/torch/algorithms/weight_only/hqq/config.py:45
↓ 12 callersClassQuantInput
neural_compressor/torch/algorithms/fp8_quant/_core/quant_dequant.py:83
↓ 12 callersClassRtnConfig
neural_compressor/transformers/utils/quantization_config.py:242
↓ 12 callersClassSmoothQuantConfig
Config class for smooth quantization.
neural_compressor/torch/quantization/config.py:1485
↓ 12 callersClassStaticQuantConfig
Config class for keras static quantization.
neural_compressor/tensorflow/keras/quantization/config.py:48
↓ 12 callersClassTensorflowQuery
Tensorflow Query Capability Class.
neural_compressor/tensorflow/algorithms/static_quant/tensorflow.py:914
↓ 11 callersClassDataLoader
DataLoader dedicated for the Criteo Terabyte Click Logs dataset
examples/pytorch/recommendation/dlrm/static_quant/ipex/data_loader_terabyte.py:20
↓ 11 callersClassDequantOutput
neural_compressor/torch/algorithms/fp8_quant/_core/quant_dequant.py:141
↓ 11 callersClassDynamicQuantConfig
Config class for JAX Dynamic quantization. Dynamic quantization applies quantization to both weights and activations during runtime. This con
neural_compressor/jax/quantization/config.py:49
↓ 11 callersClassLMEvalParser
neural_compressor/evaluation/lm_eval/utils.py:26
↓ 11 callersClassOperatorConfig
OperatorConfig.
neural_compressor/torch/quantization/config.py:74
↓ 10 callersClassQuantizeGraphHelper
This class contains several staticmethod functions.
neural_compressor/tensorflow/quantization/utils/quantize_graph_common.py:26
↓ 10 callersClassSmoothQuantConfig
Config class for tf smooth quantization.
neural_compressor/tensorflow/quantization/config.py:207
↓ 9 callersClassAverageMeter
Computes and stores the average and current value
examples/pytorch/image_recognition/torchvision_models/quantization/static_quant/ipex/main.py:485
↓ 9 callersClassAverageMeter
Computes and stores the average and current value
examples/pytorch/cv/fp8_quant/main.py:325
↓ 9 callersClassAverageMeter
Computes and stores the average and current value
examples/pytorch/cv/mixed_precision/main.py:301
↓ 9 callersClassAverageMeter
Computes and stores the average and current value
examples/pytorch/cv/static_quant/main.py:373
↓ 9 callersClassCpuInfo
Get CPU Info.
neural_compressor/tensorflow/utils/utility.py:224
↓ 9 callersClassDynamicQDQLayer
Layer that applies dynamic quantize-dequantize to activations.
neural_compressor/jax/quantization/layers_dynamic.py:68
↓ 9 callersClassHQQConfig
Configuration class for Half-Quadratic Quantization (HQQ). HQQ is a quantization algorithm that reduces the precision of weights and activations
neural_compressor/torch/quantization/config.py:1626
↓ 9 callersClassLazyImport
Lazy import python module till use.
neural_compressor/common/utils/utility.py:65
↓ 8 callersClassTEQConfig
Config class for TEQ. TEQ: Activation-aware Weight Quantization for LLM Compression and Acceleration. https://arxiv.org/abs/2306.00978
neural_compressor/torch/quantization/config.py:685
↓ 8 callersClassTestVector
test/torch/algorithms/fp8_quant/tester.py:81
↓ 7 callersClassCriteoDataset
examples/pytorch/recommendation/dlrm/static_quant/ipex/dlrm_data_pytorch.py:60
↓ 7 callersClassDequantizeCastOptimizer
Remove the Cast OP and set Dequantize output to B16 if the Cast OP output is BF16.
neural_compressor/tensorflow/quantization/utils/graph_rewriter/bf16/dequantize_cast_optimizer.py:28
↓ 7 callersClassGraphConverter
Graph Converter Class is used to generate the quantization graph.
neural_compressor/tensorflow/quantization/utils/graph_converter.py:127
↓ 7 callersClassINCWeightOnlyLinear
INC Weight Only Linear.
neural_compressor/torch/algorithms/weight_only/modules.py:157
↓ 7 callersClassMyDataLoader
test/tensorflow/test_config.py:63
↓ 7 callersClassQuantizeGraphForIntel
Quantize the graph.
neural_compressor/tensorflow/quantization/utils/quantize_graph/quantize_graph_for_intel_cpu.py:34
↓ 6 callersClassConvertLeakyReluOptimizer
Convert below subgraph to Node A + LeakyRelu. Node A Node A | x | | x | |
neural_compressor/tensorflow/quantization/utils/graph_rewriter/generic/convert_leakyrelu.py:28
↓ 6 callersClassDataset
test/tensorflow/keras/test_config.py:78
↓ 6 callersClassEvaluator
Evaluator is a collection of evaluation functions. Note: will deprecate this class in the future. Examples: def eval_acc(model):
neural_compressor/common/base_tuning.py:64
↓ 6 callersClassFreezeValueTransformer
Freeze Value with calibration.
neural_compressor/tensorflow/quantization/utils/graph_rewriter/int8/freeze_value.py:31
↓ 6 callersClassGPTQConfig
neural_compressor/transformers/utils/quantization_config.py:297
↓ 6 callersClassMXQuantConfig
Config class for MX quantization.
neural_compressor/torch/quantization/config.py:1134
↓ 6 callersClassMinMaxObserver
Observer that tracks running min/max values for calibration.
neural_compressor/jax/quantization/layers_static.py:68
↓ 6 callersClassMyDataLoader
test/tensorflow/quantization/test_smooth_quant.py:53
↓ 6 callersClassMyDataloader
test/tensorflow/keras/test_config.py:98
↓ 6 callersClassStatistics
The statistics printer.
neural_compressor/common/utils/utility.py:393
↓ 5 callersClassCapturedDataloader
neural_compressor/torch/algorithms/weight_only/utility.py:1185
↓ 5 callersClassFoldBatchNormNodesOptimizer
Folding BatchNorm nodes into Conv.
neural_compressor/tensorflow/quantization/utils/graph_rewriter/generic/fold_batch_norm.py:32
↓ 5 callersClassFuseDecomposedBNOptimizer
Fuse decomposed small ops to BatchNormalization.
neural_compressor/tensorflow/quantization/utils/graph_rewriter/generic/fuse_decomposed_bn.py:34
↓ 5 callersClassINT8StaticQuantConfig
Config class for static quantization.
neural_compressor/torch/quantization/config.py:1337
↓ 5 callersClassMatmul
neural_compressor/torch/algorithms/fp8_quant/_quant_common/helper_modules.py:38
↓ 5 callersClassMixedPrecisionConfig
Config class for mixed-precision.
neural_compressor/torch/quantization/config.py:1947
↓ 5 callersClassMockDataLoader
test/torch/quantization/weight_only/test_woq_utils.py:91
↓ 5 callersClassModuleExtraConfig
Used to encapsulate measure/quant data and consumed by PatchedModule(s) 2 use cases: 1. Holds the observers per op-tensors (MEASURE mode)
neural_compressor/torch/algorithms/fp8_quant/model_configs.py:74
↓ 5 callersClassMoveSqueezeAfterReluOptimizer
Move Squeeze op after Relu op for match fusion pattern.
neural_compressor/tensorflow/quantization/utils/graph_rewriter/generic/move_squeeze_after_relu.py:27
↓ 5 callersClassQTensorMetaInfo
Represents the meta information of a quantized tensor. Attributes: nbits (int): The number of bits used for quantization. group_s
neural_compressor/torch/algorithms/weight_only/hqq/qtensor.py:28
↓ 5 callersClassQuantDequantNone
neural_compressor/torch/algorithms/fp8_quant/_core/quant_dequant.py:71
↓ 5 callersClassQuantLinear
Quantized version of nn.Linear.
neural_compressor/torch/algorithms/qat/quant_linear.py:29
↓ 5 callersClassStripUnusedNodesOptimizer
Remove the unused nodes in the graph.
neural_compressor/tensorflow/quantization/utils/graph_rewriter/generic/strip_unused_nodes.py:24
↓ 5 callersClassTuningParam
Define the tunable parameter for the algorithm. Example: Class FakeAlgoConfig(BaseConfig): '''Fake algo config.'''.
neural_compressor/common/tuning_param.py:39
↓ 4 callersClassBiasCorrection
This class implements the bias correction graph transform. Will correct the weight and scale for *Conv2D* op weight_empirical: our task i
neural_compressor/tensorflow/quantization/utils/transform_graph/bias_correction.py:29
↓ 4 callersClassCaptureOutputToFile
Not displayed in API Docs. Capture the output to file.
neural_compressor/tensorflow/utils/utility.py:288
↓ 4 callersClassCpuInfo
Get CPU Info.
neural_compressor/common/utils/utility.py:98
↓ 4 callersClassEvaluationFuncWrapper
Evaluation function wrapper.
neural_compressor/common/base_tuning.py:38
↓ 4 callersClassGraphFoldConstantOptimizer
Folding all the sequences only consist of const and self.supported_op_type.
neural_compressor/tensorflow/quantization/utils/graph_rewriter/generic/fold_constant.py:29
↓ 4 callersClassHQQModuleConfig
Configuration class for HQQModule. Args: weight (Any): The weight quantization configuration. scale (Any): The scale quantization
neural_compressor/torch/algorithms/weight_only/hqq/config.py:69
↓ 4 callersClassKerasQuantizedModelBackboneWrapper
Wrapper that preserves quantization config when saving Keras backbones.
neural_compressor/jax/quantization/saving.py:215
↓ 4 callersClassMockModel
test/torch/quantization/weight_only/test_woq_utils.py:68
↓ 4 callersClassQTensor
Represents a quantized tensor. Example: val: torch.Tensor scale: val: torch.Tensor scale: torch.Tensor
neural_compressor/torch/algorithms/weight_only/hqq/qtensor.py:54
↓ 4 callersClassSwitchOptimizer
Remove switch op if the input condition is true.
neural_compressor/tensorflow/quantization/utils/graph_rewriter/generic/switch_optimizer.py:27
↓ 4 callersClassW8A8PT2EQuantizer
The W8A8 quantizer using PT2E.
neural_compressor/torch/algorithms/pt2e_quant/core.py:39
↓ 4 callersClassWOQModelLoader
WOQ Model Loader.
neural_compressor/torch/algorithms/weight_only/save_load.py:146
↓ 4 callersClassWrapModel
Wrap an inner module. If we do not wrap the inner module, it will not be quantized properly. Maybe we can change this behavior in the future.
test/torch/algorithms/fp8_quant/tester.py:268
↓ 3 callersClassAwqConfig
neural_compressor/transformers/utils/quantization_config.py:387
↓ 3 callersClassBF16Convert
BF16 node convert transformation.
neural_compressor/tensorflow/quantization/utils/graph_rewriter/bf16/bf16_convert.py:43
↓ 3 callersClassCalibration
Calibration class.
neural_compressor/torch/algorithms/smooth_quant/utility.py:840
↓ 3 callersClassConfigLoader
ConfigLoader is a generator that yields configs from a config set.
neural_compressor/common/base_tuning.py:327
↓ 3 callersClassConvertLayoutOptimizer
The layout conversion optimizer, convert NCHW to NHWC format. It is executed only when NCHW node exists and tensorflow version is 2.4.0 and above
neural_compressor/tensorflow/quantization/utils/graph_rewriter/generic/convert_layout.py:28
↓ 3 callersClassFakeModel
test/common/test_common.py:76
↓ 3 callersClassFuseBiasAddAndAddOptimizer
Fuse Biasadd + Add into BiasAdd when the second input of Add is const node.
neural_compressor/tensorflow/quantization/utils/graph_rewriter/generic/fuse_biasadd_add.py:28
↓ 3 callersClassGraphCseOptimizer
We introduce the CSE optimizer to optimize the nodes that contains identical op type. Case 1. Node A has three output nodes(B,C,D) and those chil
neural_compressor/tensorflow/quantization/utils/graph_rewriter/generic/graph_cse_optimizer.py:28
↓ 3 callersClassM
test/torch/algorithms/fp8_quant/unit_tests/test_scale_method_config.py:27
↓ 3 callersClassMulLinear
Linear wrapper to apply scale to input.
neural_compressor/torch/algorithms/weight_only/modules.py:907
next →1–100 of 839, ranked by callers