Creates a handle to data type casting. This API is synchronous.
After the handle is created, call aclopExecWithHandle to execute the operator.
aclError aclopCreateHandleForCast(aclTensorDesc *srcDesc,
aclTensorDesc *dstDesc,
uint8_t truncate,
aclopHandle **handle)
Parameter |
Input/Output |
Description |
|---|---|---|
srcDesc |
Input |
Pointer to the input tensor description. |
dstDesc |
Input |
Pointer to the output tensor description. |
truncate |
Input |
Reserved. |
handle |
Output |
Pointer to the pointer to the operator handle. |
0 on success; else, failure.