Function: create_handle_for_cast

C Prototype

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

Python Function

handle, ret = acl.op.create_handle_for_cast(src_desc, dst_desc, truncate)

Function Usage

Creates a handle to data type casting.

After the handle is created, call acl.op.execute_with_handle to execute the operator.

Input Description

src_desc: int, pointer address of the input tensor description.

dst_desc: int, pointer address of the output tensor description.

truncate: int, reserved.

Return Value

handle: int, pointer address of the output handle.

ret: int, error code.

Restrictions

None