产品 |
是否支持 |
|---|---|
Ascend 950PR/Ascend 950DT |
√ |
x |
|
x |
|
x |
|
x |
|
x |
|
x |
返回指定数据类型的最小有限值。
Ascend 950PR/Ascend 950DT,支持的数据类型为:int8_t、uint8_t、int16_t、uint16_t、half、bfloat16_t、int32_t、uint32_t、float。
constexpr __aicore__ static inline T Min()
__aicore__ static inline void Min(const LocalTensor<T>& dst, uint32_t count)
参数名 |
输入/输出 |
描述 |
|---|---|---|
dst |
输出 |
目的操作数。 类型为LocalTensor,支持的TPosition为VECIN/VECCALC/VECOUT。 LocalTensor的起始地址需要32字节对齐。 |
count |
输入 |
输入数据元素个数。 |
标量接口返回值为对应数据类型的最小有限值。
矢量接口无返回值。
无。
1 | int32_t value = AscendC::NumericLimits<int32_t>::Min(); |
1 | AscendC::NumericLimits<int32_t>::Min(dstLocal, 256); // 返回256个int32_t类型的最小有限值 |