aclopCreateHandleForCast

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

√

Description

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

Prototype

aclError aclopCreateHandleForCast(aclTensorDesc *srcDesc,
aclTensorDesc *dstDesc,
uint8_t truncate,
aclopHandle **handle)

Parameters

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.

Returns

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