diff options
author | Arne Juul <arnej@verizonmedia.com> | 2020-12-03 09:46:32 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2020-12-03 18:22:03 +0000 |
commit | 0127a1e99d83b707957b099dd436889583f2b53f (patch) | |
tree | 0f685941b00700dcc620597679e5ec726c69c8d6 | |
parent | c4854a1ec33e7dddf20b93a33faff70f1a9c1041 (diff) |
no more engine in Tensor
-rw-r--r-- | eval/src/vespa/eval/eval/tensor.h | 8 | ||||
-rw-r--r-- | eval/src/vespa/eval/tensor/tensor.cpp | 6 |
2 files changed, 2 insertions, 12 deletions
diff --git a/eval/src/vespa/eval/eval/tensor.h b/eval/src/vespa/eval/eval/tensor.h index 4f0ccd1114e..a7cb1f2c516 100644 --- a/eval/src/vespa/eval/eval/tensor.h +++ b/eval/src/vespa/eval/eval/tensor.h @@ -8,8 +8,6 @@ namespace vespalib { namespace eval { -struct TensorEngine; - /** * Base class for all tensors. Tensor operations are defined by the * TensorEngine interface. The Tensor class itself is used as a tagged @@ -21,12 +19,8 @@ struct TensorEngine; **/ class Tensor : public Value { -private: - const TensorEngine &_engine; - const TensorEngine &engine() const { return _engine; } protected: - explicit Tensor(const TensorEngine &engine_in) - : _engine(engine_in) {} + Tensor() {} public: Tensor(const Tensor &) = delete; Tensor(Tensor &&) = delete; diff --git a/eval/src/vespa/eval/tensor/tensor.cpp b/eval/src/vespa/eval/tensor/tensor.cpp index 51c94aab5b0..1b5671990a9 100644 --- a/eval/src/vespa/eval/tensor/tensor.cpp +++ b/eval/src/vespa/eval/tensor/tensor.cpp @@ -1,15 +1,11 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "tensor.h" -#include "default_tensor_engine.h" #include <sstream> namespace vespalib::tensor { -Tensor::Tensor() - : eval::Tensor(DefaultTensorEngine::ref()) -{ -} +Tensor::Tensor() : eval::Tensor() {} bool Tensor::supported(TypeList types) |