Convert framework-specific tensor/None to dgl ndarray.
(x)
| 61 | |
| 62 | |
| 63 | def to_dgl_nd(x): |
| 64 | """Convert framework-specific tensor/None to dgl ndarray.""" |
| 65 | return nd.NULL["int64"] if x is None else F.zerocopy_to_dgl_ndarray(x) |
| 66 | |
| 67 | |
| 68 | def to_dgl_nd_for_write(x): |
no outgoing calls
no test coverage detected