SetLoadDataPaddingValue

Supported Products

Product

Supported/Unsupported

Atlas A3 training products / Atlas A3 inference products

Atlas A2 training products / Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference product 's AI Core

Atlas inference product 's Vector Core

x

Atlas training products

x

Function Usage

Sets the padding value when Load3Dv1/Load3Dv2 is called. If isSetPadding of Load3Dv1/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

Meaning

padValue

Input

Padding value.

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

For the Atlas A2 training products / Atlas A2 inference products , 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 products / Atlas A3 inference products , 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 products , the supported data types are int8_t/uint8_t/half/int16_t/uint16_t/bfloat16_t/int32_t/uint32_t/float.

Restrictions

None

Example

See Example.