You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After #13323 calling cudf::repeat with a scalar count of 0 will crash the process with SIGFPE due to a divide by zero. The problem is an assertion was added that involves dividing by count, but count can be zero at that point which will result in a divide by zero.
Steps/Code to reproduce bug
Call cudf::repeat with a scalar count of zero.
Expected behavior
The process should not crash and instead an empty table should be returned when count == 0.
The text was updated successfully, but these errors were encountered:
Looks like subword_tokenize can also do this if max_rows_tensor == 0 which is probably nonsensical but still nice to avoid a nasty SIGFPE. Side note, doesn't look like the max_rows_tensor value is otherwise used? It's passed to the wordpiece_tokenizer constructor which seems to just ignore it.
Describe the bug
After #13323 calling cudf::repeat with a scalar count of 0 will crash the process with SIGFPE due to a divide by zero. The problem is an assertion was added that involves dividing by
count
, butcount
can be zero at that point which will result in a divide by zero.Steps/Code to reproduce bug
Call cudf::repeat with a scalar count of zero.
Expected behavior
The process should not crash and instead an empty table should be returned when count == 0.
The text was updated successfully, but these errors were encountered: