dgl.DGLGraph.unpin_memory_

DGLGraph.unpin_memory_()[source]

Unpin the graph structure and node/edge data from the page-locked memory.

This is an inplace method. If the graph struture is not pinned, e.g., on CPU or GPU, the function directly returns it.

Returns:

The unpinned graph.

Return type:

DGLGraph