Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dmlc/dgl
/ __repr__
Method
__repr__
python/dgl/_ffi/ndarray.py:318–320 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
316
return
self
317
318
def
__repr__(self):
319
res =
"dgl.{0}@{1}"
.format(self.asnumpy().__repr__(), self.context)
320
return
res
321
322
def
__str__(self):
323
return
str(self.asnumpy())
Callers
nothing calls this directly
Calls
2
asnumpy
Method · 0.95
format
Method · 0.80
Tested by
no test coverage detected