aclopCast
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
Casts the data type of the input data. This API is asynchronous.
Prototype
1 2 3 4 5 6 |
aclError aclopCast(const aclTensorDesc *srcDesc, const aclDataBuffer *srcBuffer, const aclTensorDesc *dstDesc, aclDataBuffer *dstBuffer, uint8_t truncate, aclrtStream stream) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
srcDesc |
Input |
Pointer to the input tensor description. For details about the type definition, see aclTensorDesc. |
|
srcBuffer |
Input |
Pointer to the input tensor. For details about the type definition, see aclDataBuffer. |
|
dstDesc |
Input |
Pointer to the output tensor description. For details about the type definition, see aclTensorDesc. |
|
dstBuffer |
Output |
Pointer to the output tensor. For details about the type definition, see aclDataBuffer. |
|
truncate |
Input |
Reserved. |
|
stream |
Input |
Stream where the operator is executed. For details about the type definition, see aclrtStream. |
Returns
0 on success; else, failure. For details, see aclError.