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

Method context

python/dgl/_ffi/ndarray.py:225–227  ·  view source on GitHub ↗

context of this array

(self)

Source from the content-addressed store, hash-verified

223
224 @property
225 def context(self):
226 """context of this array"""
227 return self.ctx
228
229 def __hash__(self):
230 return ctypes.cast(self.handle, ctypes.c_void_p).value

Callers 15

_topk_onFunction · 0.80
_gspmmFunction · 0.80
_gspmm_heteroFunction · 0.80
_gsddmmFunction · 0.80
_gsddmm_heteroFunction · 0.80
_segment_reduceFunction · 0.80
_scatter_addFunction · 0.80
_bwd_segment_cmpFunction · 0.80
sliceMethod · 0.80
flattenMethod · 0.80
record_streamMethod · 0.80

Calls

no outgoing calls

Tested by 5

test_subframesFunction · 0.64
test_to_deviceFunction · 0.64
test_pin_memory_Function · 0.64
test_frame_deviceFunction · 0.64
test_column_subcolumnFunction · 0.64