diff options
author | Arne Juul <arnej@verizonmedia.com> | 2020-12-10 09:21:53 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2020-12-10 09:21:53 +0000 |
commit | 08e5ee0f980a25f88489586bf3b6f445f9723597 (patch) | |
tree | 50b025edb343f44782cf29468c8eb565bef2234e /eval/src | |
parent | 2050d83063418bca2c04f73918c7548dbaddb5ed (diff) |
move class to the only place it is used
Diffstat (limited to 'eval/src')
4 files changed, 0 insertions, 49 deletions
diff --git a/eval/src/vespa/eval/CMakeLists.txt b/eval/src/vespa/eval/CMakeLists.txt index 3b5ce73c8d5..4160bdf8f34 100644 --- a/eval/src/vespa/eval/CMakeLists.txt +++ b/eval/src/vespa/eval/CMakeLists.txt @@ -9,7 +9,6 @@ vespa_add_library(vespaeval $<TARGET_OBJECTS:eval_instruction> $<TARGET_OBJECTS:eval_onnx> $<TARGET_OBJECTS:eval_streamed> - $<TARGET_OBJECTS:eval_tensor_dense> INSTALL lib64 DEPENDS onnxruntime diff --git a/eval/src/vespa/eval/tensor/dense/CMakeLists.txt b/eval/src/vespa/eval/tensor/dense/CMakeLists.txt deleted file mode 100644 index d561df80d14..00000000000 --- a/eval/src/vespa/eval/tensor/dense/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -vespa_add_library(eval_tensor_dense OBJECT - SOURCES - mutable_dense_tensor_view.cpp -) diff --git a/eval/src/vespa/eval/tensor/dense/mutable_dense_tensor_view.cpp b/eval/src/vespa/eval/tensor/dense/mutable_dense_tensor_view.cpp deleted file mode 100644 index 913a386418b..00000000000 --- a/eval/src/vespa/eval/tensor/dense/mutable_dense_tensor_view.cpp +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. - -#include "mutable_dense_tensor_view.h" - -namespace vespalib::eval { - -MutableDenseTensorView::MutableDenseTensorView(const ValueType &type_in) - : _type(type_in), - _cells() -{ - assert(_type.is_dense()); -} - -} diff --git a/eval/src/vespa/eval/tensor/dense/mutable_dense_tensor_view.h b/eval/src/vespa/eval/tensor/dense/mutable_dense_tensor_view.h deleted file mode 100644 index 6b1011033a0..00000000000 --- a/eval/src/vespa/eval/tensor/dense/mutable_dense_tensor_view.h +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. - -#pragma once - -#include <vespa/eval/eval/value.h> -#include <cassert> - -namespace vespalib::eval { - -/** - * A dense tensor with a cells reference that can be modified. - */ -class MutableDenseTensorView : public Value { -private: - const ValueType _type; - TypedCells _cells; -public: - MutableDenseTensorView(const ValueType &type_in); - void setCells(TypedCells cells_in) { - assert(cells_in.type == _type.cell_type()); - _cells = cells_in; - } - const ValueType &type() const final override { return _type; } - TypedCells cells() const final override { return _cells; } - const Index &index() const final override { return TrivialIndex::get(); } - MemoryUsage get_memory_usage() const final override { return self_memory_usage<MutableDenseTensorView>(); } -}; - -} |