SetLoadDataPaddingValue

Applicability

Product

Supported

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 AI Core

Atlas inference product Vector Core

x

Atlas training product

x

Function Usage

Sets the padding value when Load3Dv1 or Load3Dv2 is called. If isSetPadding of Load3Dv1 or Load3Dv2 is set to true, you need to use this API to set the padding value. If isSetPadding is set to false, the padding value set by this API does not take effect.

Prototype

1
2
template <typename T>
__aicore__ inline void SetLoadDataPaddingValue(const T padValue)

Parameters

Table 1 Parameters

Parameter

Input/Output

Description

padValue

Input

Padding value.

For the Atlas 350 Accelerator Card, the supported data types are int8_t, uint8_t, half, int16_t, uint16_t, bfloat16_t, int32_t, uint32_t, and float.

For the Atlas inference product AI Core, the supported data types are int8_t/uint8_t/half/int16_t/uint16_t.

For the Atlas A2 training product/Atlas A2 inference product, the supported data types are int8_t, uint8_t, half, int16_t, uint16_t, bfloat16_t, int32_t, uint32_t, and float.

For the Atlas A3 training product/Atlas A3 inference product, the supported data types are int8_t, uint8_t, half, int16_t, uint16_t, bfloat16_t, int32_t, uint32_t, and float.

For the Atlas 200I/500 A2 inference product, the supported data types are int8_t/uint8_t/half/int16_t/uint16_t/bfloat16_t/int32_t/uint32_t/float.

Restrictions

None

Examples

See Examples.