--is_weight_clip

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

√

Description

Clips data when the upper bits of the floating-point weight data are converted to lower bits.

If the weight data type of the original model is high (for example, float32), the cast operator is inserted during model conversion to convert the data type from high (for example, float32) to low (for example, float16). In this scenario, data overflow may occur, by enabling the --is_weight_clip option, the upper-bit (for example, float32) data is cropped before the cast operator to prevent data overflow.

See Also

None

Argument

  • 0: disabled.
  • 1 (default): enabled

Suggestions and Benefits

None

Example

--is_weight_clip=1

Dependencies and Restrictions

None