Skip to content

Commit b293feb

Browse files
committed
add checkout dtype
1 parent 5263605 commit b293feb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ops/random_sample/cuda/random_sample.cu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ void random_sample_workspace(size_t &size_radix_sort, size_t &size_scan,
141141
nullptr, size_scan,
142142
nullptr, voc,
143143
nullptr);
144+
} else {
145+
throw std::invalid_argument("Unsupported dtype provided.");
144146
}
145147
}
146148
__global__ void random_sample_kernel(uint64_t *result,

0 commit comments

Comments
 (0)