summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-10-15 10:37:22 +0000
committerArne Juul <arnej@verizonmedia.com>2020-10-15 11:22:15 +0000
commitd78c40cb1330fea628684b9aaa8aa993fd70eecc (patch)
tree363455ec2a4feea9caca72c70a8880caa5825062 /searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
parent08393e9e14635f1c6a6c84650c25023a0db7ed0b (diff)
simplify
Diffstat (limited to 'searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp')
-rw-r--r--searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp b/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
index 2de95e89da5..da77e29dbb0 100644
--- a/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
+++ b/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
@@ -61,8 +61,7 @@ vespalib::string denseSpec("tensor(x[2],y[3])");
vespalib::string vec_2d_spec("tensor(x[2])");
Value::UP createTensor(const TensorSpec &spec) {
- auto value = EngineOrFactory::get().from_spec(spec);
- return value;
+ return EngineOrFactory::get().from_spec(spec);
}
TensorSpec
@@ -904,8 +903,7 @@ public:
}
std::unique_ptr<Value> createDenseTensor(const TensorSpec &spec) {
- auto value = EngineOrFactory::get().from_spec(spec);
- return value;
+ return EngineOrFactory::get().from_spec(spec);
}
std::unique_ptr<NearestNeighborBlueprint> make_blueprint(double brute_force_limit = 0.05) {