-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce matching type #4161
Enforce matching type #4161
Conversation
…4_enforce-dtype-match
…4_enforce-dtype-match
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM otherwise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving the C/C++ part
…4_enforce-dtype-match
…4_enforce-dtype-match
@@ -165,8 +163,22 @@ def test_node2vec( | |||
) | |||
num_verts = G.number_of_vertices() | |||
k = random.randint(6, 12) | |||
start_vertices = cudf.Series(random.sample(range(num_verts), k), dtype="int32") | |||
start_vertices = cudf.Series( | |||
random.sample(range(num_verts), k), dtype=start_vertices_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this is a FIXME, but if we're picking samples at random it could make it hard to repro a test failure. We should somehow make it so tests with specific samples can be re-run in the event that the test fails.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. The samples are random so that the test doesn't cover a fixed set of start vertices but I do agree it makes it hard to debug. Perhaps we can add a print those start_vertices for debugging purposes? I added a FIXME regarding this.
/merge |
728ffd0
into
rapidsai:branch-24.04
This PR enforces that the
vertex
and thestart_vertices
are of the same type and throws a warning in the python API and an exception in the CAPI when there is a mismatch.closes #4094