--enable_attr_compression

Applicability

Product

Supported (Yes/No)

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Usage

Specifies whether to compress the attributes in the graph.

When the ATC tool is used to generate an offline model, the attributes in the graph are automatically compressed to reduce the model size. However, in some scenarios, the decompression of compressed attributes is time-consuming, which may affect the inference performance. Therefore, this option is added to control whether to compress the graph attributes when an offline model is generated.

See Also

None

Argument

  • false: The attributes in the graph are not compressed when an offline model is generated.
  • true (default): The attributes in the graph are automatically compressed when an offline model is generated.

Suggestions and Benefits

None

Example

--enable_attr_compression=true