aclopCreateHandleForCast

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Usage

Creates a handle to data type casting. After the handle is created, call aclopExecWithHandle to execute the operator.

Prototype

1
2
3
4
aclError aclopCreateHandleForCast(aclTensorDesc *srcDesc,
aclTensorDesc *dstDesc,
uint8_t truncate,
aclopHandle **handle)

Parameters

Parameter

Input/Output

Description

srcDesc

Input

Pointer to the input tensor description. For details about the type definition, see aclTensorDesc.

dstDesc

Input

Pointer to the output tensor description. For details about the type definition, see aclTensorDesc.

truncate

Input

Reserved.

handle

Output

Pointer to the operator execution handle's pointer. For details about the type definition, see aclopHandle.

Returns

0 on success; else, failure. For details, see aclError.