|
| 1 | +""" |
| 2 | +Copyright Wenyi Tang 2025 |
| 3 | +
|
| 4 | +:Author: Wenyi Tang |
| 5 | +:Email: wenyitang@outlook.com |
| 6 | +
|
| 7 | +mPPQ enumerations and data types. |
| 8 | +""" |
| 9 | + |
| 10 | +from mppq.data import DataType |
| 11 | +from mppq.dispatcher import ( |
| 12 | + AggressiveDispatcher, |
| 13 | + AllinDispatcher, |
| 14 | + ConservativeDispatcher, |
| 15 | + Perseus, |
| 16 | + PointDispatcher, |
| 17 | +) |
| 18 | +from mppq.dispatcher.scope import IgnoredScope |
| 19 | +from mppq.executor import ( |
| 20 | + BaseGraphExecutor, |
| 21 | + GraphInput, |
| 22 | + QuantRuntimeHook, |
| 23 | + RuntimeHook, |
| 24 | + TorchExecutor, |
| 25 | + TorchQuantizeDelegator, |
| 26 | +) |
| 27 | +from mppq.executor.op.base import OperationForwardProtocol, TorchBackendContext |
| 28 | +from mppq.ir.base.command import ( |
| 29 | + GraphCommand, |
| 30 | + GraphCommandType, |
| 31 | + GraphDeployCommand, |
| 32 | + QuantizeOperationCommand, |
| 33 | + ReplaceOperationCommand, |
| 34 | + ReplaceVariableCommand, |
| 35 | + TruncateGraphCommand, |
| 36 | +) |
| 37 | +from mppq.ir.base.graph import BaseGraph |
| 38 | +from mppq.ir.base.opdef import Operation, Opset, OpSocket, Variable |
| 39 | +from mppq.ir.base.quantize import ( |
| 40 | + BaseQuantFunction, |
| 41 | + QuantableOperation, |
| 42 | + QuantableVariable, |
| 43 | +) |
| 44 | +from mppq.ir.deploy import QuantableGraph, RunnableGraph |
| 45 | +from mppq.ir.morph import GraphFormatter, GraphMerger, GraphReplacer |
| 46 | +from mppq.ir.search import OperationSet, SearchableGraph |
| 47 | +from mppq.ir.training import TrainableGraph |
| 48 | +from mppq.quant import ( |
| 49 | + OperationQuantizationConfig, |
| 50 | + QuantizationPolicy, |
| 51 | + QuantizationProperty, |
| 52 | + QuantizationStates, |
| 53 | + RoundingPolicy, |
| 54 | + TargetPrecision, |
| 55 | + TensorQuantizationConfig, |
| 56 | +) |
| 57 | +from mppq.quantization.algorithm.training import BlockBuilder, TrainableBlock |
| 58 | +from mppq.quantization.optim.base import ( |
| 59 | + QuantizationOptimizationPass, |
| 60 | + QuantizationOptimizationPipeline, |
| 61 | +) |
0 commit comments