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

Function dgl_warning

python/dgl/base.py:51–53  ·  view source on GitHub ↗

DGL warning wrapper that defaults to ``DGLWarning`` instead of ``UserWarning`` category.

(message, category=DGLWarning, stacklevel=2)

Source from the content-addressed store, hash-verified

49
50
51def dgl_warning(message, category=DGLWarning, stacklevel=2):
52 """DGL warning wrapper that defaults to ``DGLWarning`` instead of ``UserWarning`` category."""
53 return warnings.warn(message, category=category, stacklevel=stacklevel)
54
55
56warnings.formatwarning = dgl_warning_format

Callers 15

forwardMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90
invoke_edge_udfFunction · 0.85
broadcast_nodesFunction · 0.85
broadcast_edgesFunction · 0.85
__setstate__Method · 0.85
add_columnMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected