Skip to content

Commit 250233c

Browse files
committed
Pass by const ref
1 parent dd9344d commit 250233c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cuda/softmax.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ static __global__ void soft_max_back_f32(
179179
}
180180

181181
template<typename T>
182-
static void soft_max_f32_cuda(const float * x, const T * mask, float * dst, soft_max_params params, cudaStream_t stream) {
182+
static void soft_max_f32_cuda(const float * x, const T * mask, float * dst, const soft_max_params & params, cudaStream_t stream) {
183183
int nth = WARP_SIZE;
184184
const int64_t ncols_x = params.ncols;
185185

0 commit comments

Comments
 (0)