Copy this immutable graph index to the given device context. NOTE: this method only works for immutable graph index Parameters ---------- ctx : DGLContext The target device context. Returns ------- GraphIndex The grap
(self, ctx)
| 938 | return "int64" |
| 939 | |
| 940 | def copy_to(self, ctx): |
| 941 | """Copy this immutable graph index to the given device context. |
| 942 | |
| 943 | NOTE: this method only works for immutable graph index |
| 944 | |
| 945 | Parameters |
| 946 | ---------- |
| 947 | ctx : DGLContext |
| 948 | The target device context. |
| 949 | |
| 950 | Returns |
| 951 | ------- |
| 952 | GraphIndex |
| 953 | The graph index on the given device context. |
| 954 | """ |
| 955 | return _CAPI_DGLImmutableGraphCopyTo( |
| 956 | self, ctx.device_type, ctx.device_id |
| 957 | ) |
| 958 | |
| 959 | def copyto_shared_mem(self, shared_mem_name): |
| 960 | """Copy this immutable graph index to shared memory. |
no outgoing calls