summaryrefslogtreecommitdiffstats
path: root/eval
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-06-15 07:28:46 +0000
committerArne Juul <arnej@verizonmedia.com>2020-06-25 06:47:12 +0000
commit68291c2297a684f447f743305e1d1fc8d39f72d3 (patch)
tree3de49984b29227688468e84e2777edb25b59d2d4 /eval
parent827f3af2193cf32741ecca20b70dc2e0cf798e05 (diff)
GC old way of selecting functions by cell type
Diffstat (limited to 'eval')
-rw-r--r--eval/src/vespa/eval/tensor/dense/typed_cells.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/eval/src/vespa/eval/tensor/dense/typed_cells.h b/eval/src/vespa/eval/tensor/dense/typed_cells.h
index 0f22c85735e..d1d2baa535e 100644
--- a/eval/src/vespa/eval/tensor/dense/typed_cells.h
+++ b/eval/src/vespa/eval/tensor/dense/typed_cells.h
@@ -48,15 +48,6 @@ struct TypedCells {
};
template <typename TGT, typename... Args>
-decltype(auto) dispatch_0(CellType ct, Args &&...args) {
- switch (ct) {
- case CellType::DOUBLE: return TGT::template call<double>(std::forward<Args>(args)...);
- case CellType::FLOAT: return TGT::template call<float>(std::forward<Args>(args)...);
- }
- abort();
-}
-
-template <typename TGT, typename... Args>
decltype(auto) dispatch_1(const TypedCells &a, Args &&...args) {
switch (a.type) {
case CellType::DOUBLE: return TGT::call(a.unsafe_typify<double>(), std::forward<Args>(args)...);
@@ -74,22 +65,4 @@ decltype(auto) dispatch_2(A1 &&a, const TypedCells &b, Args &&...args) {
abort();
}
-template <typename T, typename... Args>
-decltype(auto) select_1(CellType a_type) {
- switch(a_type) {
- case CellType::DOUBLE: return T::template get_fun<double, Args...>();
- case CellType::FLOAT: return T::template get_fun<float, Args...>();
- }
- abort();
-}
-
-template <typename T>
-decltype(auto) select_2(CellType a_type, CellType b_type) {
- switch(b_type) {
- case CellType::DOUBLE: return select_1<T, double>(a_type);
- case CellType::FLOAT: return select_1<T, float>(a_type);
- }
- abort();
-}
-
} // namespace