SetUserTag
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Adds user-defined information to a tensor. You can set the corresponding tag as required. You can use GetUserTag to obtain the tag information of a specified tensor and perform operations on the tensor based on the tag information.
Prototype
1 | __aicore__ inline void SetUserTag(const TTagType tag) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
tag |
Input |
Tag information. The type TTagType corresponds to int32_t. |
Returns
None
Restrictions
None
Examples
// Example AscendC::TTagType tag = 10; inputLocal.SetUserTag(tag); // Set tag information for the LocalTensor.
Parent topic: LocalTensor