dgl.init.zero_initializer

dgl.init.zero_initializer(shape, dtype, ctx, id_range)[source]

Zero feature initializer

Examples

>>> import dgl
>>> g = dgl.DGLGraph()
>>> g.set_n_initializer(dgl.init.zero_initializer)