ReinterpretCast
Product Support
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function
Reinterprets the current tensor as a new type specified by the user. The converted tensor has the same address and content as the original tensor, and the tensor size (number of bytes) remains unchanged.
Prototype
1 2 | template <typename CAST_T> __aicore__ inline LocalTensor<CAST_T> ReinterpretCast() const |
Parameters
Parameter |
Description |
|---|---|
CAST_T |
New type specified by the user. |
Returns
Tensor after reinterpretation.
Restrictions
None
Example
For details, see Example.
Parent topic: LocalTensor