Skip to content

Commit 81baf4c

Browse files
committed
Remove const
1 parent e6ce901 commit 81baf4c

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

ports/libtorch/fix-sleef.patch

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
diff --git a/aten/src/ATen/CMakeLists.txt b/aten/src/ATen/CMakeLists.txt
22
index f3281d3cb..c8b6ed30e 100644
3-
--- a/aten/src/ATen/CMakeLists.txt
3+
--- a/aten/src/ATen/CMakeLists.txt
44
+++ b/aten/src/ATen/CMakeLists.txt
55
@@ -418,7 +418,7 @@ if(NOT MSVC AND NOT EMSCRIPTEN AND NOT INTERN_BUILD_MOBILE)
66
list(APPEND ATen_THIRD_PARTY_INCLUDE ${CMAKE_BINARY_DIR}/include)
@@ -20,3 +20,16 @@ index f3281d3cb..c8b6ed30e 100644
2020

2121
set(CMAKE_C_FLAGS_DEBUG ${OLD_CMAKE_C_FLAGS_DEBUG})
2222
set(CMAKE_CXX_FLAGS ${OLD_CMAKE_CXX_FLAGS})
23+
diff --git a/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h b/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h
24+
index f3281d3cb..c8b6ed30e 100644
25+
--- a/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h
26+
+++ b/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h
27+
@@ -266,7 +266,7 @@ public:
28+
}
29+
return b;
30+
}
31+
- Vectorized<T> map(const __m256 (*const vop)(__m256)) const {
32+
+ Vectorized<T> map(__m256 (*const vop)(__m256)) const {
33+
__m256 lo, hi;
34+
cvt_to_fp32<T>(values, lo, hi);
35+
const auto o1 = vop(lo);

versions/l-/libtorch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"versions": [
33
{
4-
"git-tree": "d6c80d406232a0bfd3360a40132a69d9f70b972c",
4+
"git-tree": "2590eb541f5f4f5a959ae3b6990488b4b7d2c473",
55
"version": "2.1.2",
66
"port-version": 8
77
},

0 commit comments

Comments
 (0)