- cuquantum.custatevec.get_device_mem_handler(intptr_t handle) tuple ¶
Get the device memory handler for cuTensorNet.
handle (intptr_t) – The library handle.
handlerobject, which has two forms:
handleris a 3-tuple, it is interpreted as
(malloc, free, name), where the first two objects are Python callables, and
nameis the name of the handler. This 3-tuple handler would be compared equal (elementwisely) to the one previously passed to
handleris a 4-tuple, it is interpreted as
(ctx, device_alloc, device_free, name), where the first three elements are the pointer addresses (
int) of the corresponding members.
nameis the same as above.
- Return type