MCPcopy Index your code
hub / github.com/dmlc/dgl / record_stream

Method record_stream

python/dgl/_ffi/ndarray.py:370–382  ·  view source on GitHub ↗

Record the stream that is using this tensor. Note ---- This API is more for testing. Users should call ``record_stream`` on torch.Tensor or dgl.graph directly. Parameters ---------- stream : DGLStreamHandle

(self, stream)

Source from the content-addressed store, hash-verified

368 check_call(_LIB.DGLArrayUnpinData(self.handle))
369
370 def record_stream(self, stream):
371 """Record the stream that is using this tensor.
372
373 Note
374 ----
375 This API is more for testing. Users should call ``record_stream``
376 on torch.Tensor or dgl.graph directly.
377
378 Parameters
379 ----------
380 stream : DGLStreamHandle
381 """
382 check_call(_LIB.DGLArrayRecordStream(self.handle, stream))
383
384
385def free_extension_handle(handle, type_code):

Callers 1

_record_streamFunction · 0.45

Calls 1

check_callFunction · 0.85

Tested by

no test coverage detected