Skip to content

Commit d7d52be

Browse files
committed
remove not needed cast from tanh
1 parent 6f2b99b commit d7d52be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-sycl/element_wise.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static void tanh(const T *x, T *dst, int k,
7171
if (i >= k) {
7272
return;
7373
}
74-
dst[i] = sycl::tanh((T)(x[i]));
74+
dst[i] = sycl::tanh((x[i]));
7575
}
7676

7777
template<typename T>

0 commit comments

Comments
 (0)