We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dc74c1 commit c4bdddaCopy full SHA for c4bddda
src/ops/random_sample/cuda/random_sample_cuda.cc
@@ -35,7 +35,7 @@ infiniopStatus_t cudaGetRandomSampleWorkspaceSize(RandomSampleCudaDescriptor_t d
35
size_t size_scan;
36
random_sample_workspace(size_radix_sort, size_scan,
37
desc->voc, desc->dtype);
38
- *size = desc->voc * desc->step + std::max(size_radix_sort, size_scan);
+ *size = desc->step + std::max(size_radix_sort, size_scan);
39
return STATUS_SUCCESS;
40
}
41
0 commit comments