Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit b930424

Browse files
committed
rm sortOp; src/Sorting.cpp is missing
1 parent 6900bf9 commit b930424

File tree

5 files changed

+0
-15
lines changed

5 files changed

+0
-15
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ set(DDPTSrcs
9999
${PROJECT_SOURCE_DIR}/src/Random.cpp
100100
${PROJECT_SOURCE_DIR}/src/ReduceOp.cpp
101101
${PROJECT_SOURCE_DIR}/src/SetGetItem.cpp
102-
${PROJECT_SOURCE_DIR}/src/Sorting.cpp
103102
)
104103
set(RTSrcs
105104
${PROJECT_SOURCE_DIR}/src/CollComm.cpp

ddptensor/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,3 @@ def to_numpy(a):
112112
)
113113
elif func == "matrix_transpose":
114114
exec(f"{func} = lambda this: dtensor(_cdt.LinAlgOp.{func}(this._t))")
115-
116-
for func in api.api_categories["SortOp"]:
117-
exec(
118-
f"{func} = lambda this, axis=-1, descending=False, stable=True: dtensor(_cdt.SortOp.{func}(this._t, descending))"
119-
)

ddptensor/array_api.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,6 @@
183183
"tensordot", # (x1, x2, /, *, axes=2)
184184
"vecdot", # (x1, x2, /, *, axis=-1)
185185
],
186-
"SortOp": [
187-
"argsort", # (x, /, *, axis=-1, descending=False, stable=True)
188-
"sort", # (x, /, *, axis=-1, descending=False, stable=True)
189-
],
190186
}
191187
)
192188

src/ddptensor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ PYBIND11_MODULE(_ddptensor, m) {
133133
Factory::init<F_REDUCEOP>();
134134
Factory::init<F_SERVICE>();
135135
Factory::init<F_SETITEM>();
136-
Factory::init<F_SORTOP>();
137136
Factory::init<F_GATHER>();
138137
Factory::init<F_GETITEM>();
139138

@@ -171,7 +170,6 @@ PYBIND11_MODULE(_ddptensor, m) {
171170
py::class_<ReduceOp>(m, "ReduceOp").def("op", &ReduceOp::op);
172171
py::class_<ManipOp>(m, "ManipOp").def("reshape", &ManipOp::reshape);
173172
py::class_<LinAlgOp>(m, "LinAlgOp").def("vecdot", &LinAlgOp::vecdot);
174-
py::class_<SortOp>(m, "SortOp").def("sort", &SortOp::sort);
175173

176174
py::class_<ddptensor>(m, "DDPTFuture")
177175
// attributes we can get from the future itself

src/include/ddptensor/Sorting.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,3 @@
1010
#include "ddptensor.hpp"
1111
#include "p2c_ids.hpp"
1212

13-
struct SortOp {
14-
static ddptensor *sort(const ddptensor &a, bool descending = false);
15-
};

0 commit comments

Comments
 (0)