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

Class InconsistentDtypeException

python/dgl/utils/internal.py:22–28  ·  view source on GitHub ↗

Exception class for inconsistent dtype between graph and tensor

Source from the content-addressed store, hash-verified

20
21
22class InconsistentDtypeException(DGLError):
23 """Exception class for inconsistent dtype between graph and tensor"""
24
25 def __init__(self, msg="", *args, **kwargs): # pylint: disable=W1113
26 prefix_message = "DGL now requires the input tensor to have\
27 the same dtype as the graph index's dtype(which you can get by g.idype). "
28 super().__init__(prefix_message + msg, *args, **kwargs)
29
30
31class Index(object):

Callers 1

_dispatchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected