mirror of
https://github.com/dmlc/dgl.git
synced 2026-06-03 19:34:33 +08:00
fix issue #7766
This commit is contained in:
@@ -1774,7 +1774,7 @@ def test_sample_neighbors_exclude_edges_homoG(dtype, fused):
|
||||
|
||||
@pytest.mark.parametrize("dtype", ["int32", "int64"])
|
||||
def test_global_uniform_negative_sampling(dtype):
|
||||
warnings.simplefilter("ignore", np.ComplexWarning)
|
||||
# warnings.simplefilter("ignore", np.ComplexWarning)
|
||||
g = dgl.graph(([], []), num_nodes=1000).to(F.ctx())
|
||||
src, dst = dgl.sampling.global_uniform_negative_sampling(
|
||||
g, 2000, False, True
|
||||
|
||||
Reference in New Issue
Block a user