Exception class for inconsistent dtype between graph and tensor
| 20 | |
| 21 | |
| 22 | class 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 | |
| 31 | class Index(object): |