Skip to content

Commit f732f37

Browse files
author
Will Feng
committed
Fix cuda::type error
1 parent a656bd0 commit f732f37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aten/src/ATen/native/cuda/TensorFactories.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Tensor& randperm_out_cuda(Tensor& result, int64_t n, Generator* generator) {
5959
// Generate random values for the keys array
6060
AT_DISPATCH_ALL_TYPES(
6161
result_tmp.type(), "randperm_out_cuda", [&] {
62-
using cuda_scalar_t = cuda::type<scalar_t>;
62+
using cuda_scalar_t = cuda::into_type<scalar_t>;
6363

6464
auto keys = result_tmp.type().tensor(result_tmp.sizes()).random_(generator);
6565

0 commit comments

Comments
 (0)