Function: set_tensor_place_ment

C Prototype

aclError aclSetTensorPlaceMent(aclTensorDesc *desc, aclMemType memType)

Python Function

ret = acl.set_tensor_place_ment(desc, mem_type)

Function Usage

Sets the placement attribute of a tensor description to identify whether the tensor memory is host memory or device memory.

Input Description

desc: int, pointer address of the tensor description.

Call acl.create_tensor_desc in advance to create the tensor description of an operator input or output as the input of this API.

mem_type: int, placement attribute value. For details about the value, see aclMemType.

Return Value

ret: int, error code.

Restrictions

None