diff options
author | Håvard Pettersen <havardpe@oath.com> | 2021-03-03 14:38:29 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2021-03-04 18:34:31 +0000 |
commit | d48fc6fd919be1a21ca19165b6ddfa6171791725 (patch) | |
tree | a915ae22221dc955b98914496f43a80eb4ff62cf /document/src | |
parent | 311e77aad06f187c70864a80a0703082f72bb3d8 (diff) |
all scalars must be double
and all operation results must be at least float
Diffstat (limited to 'document/src')
-rw-r--r-- | document/src/vespa/document/update/tensor_modify_update.cpp | 3 | ||||
-rw-r--r-- | document/src/vespa/document/update/tensor_remove_update.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/document/src/vespa/document/update/tensor_modify_update.cpp b/document/src/vespa/document/update/tensor_modify_update.cpp index 791c3efe872..1358f2c8e46 100644 --- a/document/src/vespa/document/update/tensor_modify_update.cpp +++ b/document/src/vespa/document/update/tensor_modify_update.cpp @@ -22,6 +22,7 @@ using vespalib::IllegalArgumentException; using vespalib::IllegalStateException; using vespalib::make_string; using vespalib::eval::ValueType; +using vespalib::eval::CellType; using vespalib::eval::FastValueBuilderFactory; using join_fun_t = double (*)(double, double); @@ -77,7 +78,7 @@ convertToCompatibleType(const TensorDataType &tensorType) for (const auto &dim : tensorType.getTensorType().dimensions()) { list.emplace_back(dim.name); } - return std::make_unique<const TensorDataType>(ValueType::tensor_type(std::move(list), tensorType.getTensorType().cell_type())); + return std::make_unique<const TensorDataType>(ValueType::make_type(tensorType.getTensorType().cell_type(), std::move(list))); } } diff --git a/document/src/vespa/document/update/tensor_remove_update.cpp b/document/src/vespa/document/update/tensor_remove_update.cpp index 5c8c5c07116..0b1096fce0e 100644 --- a/document/src/vespa/document/update/tensor_remove_update.cpp +++ b/document/src/vespa/document/update/tensor_remove_update.cpp @@ -19,6 +19,7 @@ using vespalib::IllegalStateException; using vespalib::make_string; using vespalib::eval::Value; using vespalib::eval::ValueType; +using vespalib::eval::CellType; using vespalib::eval::FastValueBuilderFactory; namespace document { @@ -34,7 +35,7 @@ convertToCompatibleType(const TensorDataType &tensorType) list.emplace_back(dim.name); } } - return std::make_unique<const TensorDataType>(ValueType::tensor_type(std::move(list), tensorType.getTensorType().cell_type())); + return std::make_unique<const TensorDataType>(ValueType::make_type(tensorType.getTensorType().cell_type(), std::move(list))); } } |