Skip to content

Commit

Permalink
fix test_dataset test
Browse files Browse the repository at this point in the history
  • Loading branch information
tingyu66 committed Sep 12, 2023
1 parent bc8e141 commit b1f8ff2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cugraph-dgl/tests/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,6 @@ def test_homogeneous_sampled_graphs_from_dataframe(return_type, seed_node):
assert dgl_block.num_src_nodes() == cugraph_dgl_graph.num_src_nodes()
assert dgl_block.num_dst_nodes() == cugraph_dgl_graph.num_dst_nodes()
dgl_offsets, dgl_indices, _ = dgl_block.adj_tensors("csc")
cugraph_offsets, cugraph_indices = cugraph_dgl_graph.csc()
cugraph_offsets, cugraph_indices, _ = cugraph_dgl_graph.csc()
assert torch.equal(dgl_offsets.to("cpu"), cugraph_offsets.to("cpu"))
assert torch.equal(dgl_indices.to("cpu"), cugraph_indices.to("cpu"))

0 comments on commit b1f8ff2

Please sign in to comment.