From 247a6816169556ff4e8449dfdddef0652e2b936a Mon Sep 17 00:00:00 2001 From: hli28146 Date: Wed, 10 Dec 2025 19:27:42 +0800 Subject: [PATCH] finish ModSwish #114 --- S1/hli28146_#114/ModSwish_cuda.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/S1/hli28146_#114/ModSwish_cuda.py b/S1/hli28146_#114/ModSwish_cuda.py index b4d5e503..5aac0789 100644 --- a/S1/hli28146_#114/ModSwish_cuda.py +++ b/S1/hli28146_#114/ModSwish_cuda.py @@ -65,7 +65,7 @@ torch::Tensor modswish_cuda_forward(const torch::Tensor& input) { TORCH_CHECK(input.is_contiguous(), "Input must be contiguous"); const int n = input.numel(); - auto output = torch.empty_like(input); + auto output = torch::empty_like(input); const int vec_n = n / 4; const int grid_size = (vec_n + BLOCK_SIZE - 1) / BLOCK_SIZE;