MCPcopy
hub / github.com/dmlc/dgl / pin_memory_

Method pin_memory_

python/dgl/frame.py:970–974  ·  view source on GitHub ↗

Registers the data of every column into pinned memory, materializing them if necessary.

(self)

Source from the content-addressed store, hash-verified

968 return repr(dict(self))
969
970 def pin_memory_(self):
971 """Registers the data of every column into pinned memory, materializing them if
972 necessary."""
973 for column in self._columns.values():
974 column.pin_memory_()
975
976 def unpin_memory_(self):
977 """Unregisters the data of every column from pinned memory, materializing them

Callers 15

test_pickling_is_pinnedFunction · 0.45
test_subframesFunction · 0.45
test_uva_subgraphFunction · 0.45
test_pin_memory_Function · 0.45
test_uniform_random_walkFunction · 0.45
test_pinsage_samplingFunction · 0.45
test_pin_unpin_columnFunction · 0.45

Calls 1

valuesMethod · 0.45

Tested by 12

test_pickling_is_pinnedFunction · 0.36
test_subframesFunction · 0.36
test_uva_subgraphFunction · 0.36
test_pin_memory_Function · 0.36
test_uniform_random_walkFunction · 0.36
test_pinsage_samplingFunction · 0.36
test_pin_unpin_columnFunction · 0.36