dgl.contrib.graph_store.SharedMemoryDGLGraph.init_edata

SharedMemoryDGLGraph.init_edata(edata_name, shape, dtype, ctx=device(type='cpu'))[source]

Create edge embedding.

It first creates the edge embedding in the server and maps it to the current process with shared memory.

Parameters:
  • edata_name (string) – The name of edge embedding
  • shape (tuple) – The shape of the edge embedding
  • dtype (string) – The data type of the edge embedding. The currently supported data types are “float32” and “int32”.
  • ctx (DGLContext) – The column context.