This API will be deprecated. Use acl.util.ptr_to_bytes instead.
C Prototype |
None |
|---|---|
Python Function |
output = acl.util.ptr_to_numpy(ptr, shape, type) |
Function Description |
Converts pointer address data into a NumPy array, which can be directly accessed by Python code. |
Input Description |
ptr: int, pointer address in the C language. It is the start address of the data that can be accessed. shape: tuple, shape of the NumPy to be constructed. type: int, data type of the data in ptr. The following lists some common types: (For details about the types that are not listed, data type APIs in NumPy C-API, and the following types, see the NumPy manual.)
|
Return Values |
output: NumPy type. |
Restrictions |
None |
Precautions |
|