NVDA 149.30 ▼3.91%GOOGL 273.10 ▼2.13%MSFT 489.93 ▼1.25%AMD 406.03 ▼1.75%INTC 54.47 ▼0.60%TSMC 342.34 ▼1.96%AMZN 244.43 ▼3.12%META 609.89 ▲3.40%AAPL 355.58 ▲0.43%PLTR 163.59 ▲1.50%
Markets at last close

AMD · Apps

AMD Quark supports standalone and integrated ONNX graph transforms

·1 min read

AMD Quark’s ShapeShifter framework runs composable, sequential graph transformations through a standalone command-line interface or inside a quantization script. Preprocessing passes clean up floating-point models before quantization, while postprocessing passes adapt quantized models for deployment targets.

The ResNet50 example combines opset conversion, graph simplification and BatchNorm folding. Standalone preprocessing reduces the total node count from 175 to 122, removing 53 BatchNormalization nodes while preserving 53 Conv nodes. BatchNorm parameters are folded into the preceding operators’ weights and biases. Results may vary slightly by environment.

For integrated execution, developers supply a YAML configuration through ShapeShifterYaml. The quantizer runs preprocessing before calibration and postprocessing after quantization, automatically saving the preprocessed floating-point model for inspection or reuse. Enabling this option forces SkipPreprocess=True, giving ShapeShifter control of preprocessing. The older PreprocessYAML option is deprecated and remains a preprocessing-only alias.

The integrated example uses XINT8 quantization, then aligns quantization scales across pooling operations and corrects bias scales. Random calibration data keeps the demonstration self-contained but does not yield meaningful accuracy measurements. Evaluating accuracy requires real, preprocessed images rather than the demonstration’s random inputs.

Originally reported by quark.docs.amd.comRead the source →
Related coverage
All AMD news →