torch version ‘2.3.1+cu121’
dgl version ‘2.3.0+cu121’
import dgl
import dgl.graphbolt as gb
import dgl.nn as dglnn
import torch
from torch import nn
u, i = torch.randint(20, size=(1000,)), torch.randint(10, size=(1000,))
g = dgl.heterograph({('u', 'w', 'i'): (u, i), ('i', 'b', 'u'): (i, u)})
gg = dgl.graphbolt.from_dglgraph(g)
for i in range(100):
print(i)
n = gg.sample_neighbors({'u': torch.randint(10, (100,))}, fanouts=torch.tensor([-1]))
print(n)
crashes with different memory corruption errors ex
0
1
corrupted size vs. prev_size in fastbins
on gpu sampling works fine