neural_compressor.model

Built-in model for multiple framework backends.

Submodules

Package Contents

Classes

Model

A wrapper to construct a Neural Compressor Model.

BaseModel

Base class of all neural_compressor.model, will play graph role.

Attributes

MODELS

class neural_compressor.model.Model

Bases: object

A wrapper to construct a Neural Compressor Model.

class neural_compressor.model.BaseModel(model, **kwargs)

Base class of all neural_compressor.model, will play graph role.

abstract property model

Return model itself.

abstract property graph_info

Node_type’.

Type:

Return a dict with content ‘Node

abstract save(root, *args, **kwargs)

Abstract method of model saving.

abstract export(save_path: str, conf)

Abstract method of model convertion to ONNX.

abstract framework()

Abstract method of model framework.