SetUserTag
Product Support
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function
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
Example
For details, see Example.
Parent topic: LocalTensor