aboutsummaryrefslogtreecommitdiffstats
path: root/eval
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-12-03 13:57:18 +0000
committerArne Juul <arnej@verizonmedia.com>2020-12-03 13:57:18 +0000
commitae914e3a26518b6c098fb5b2569f0cab9cf77a73 (patch)
tree4afdcf329ea13dcec21009fd8a8a2d474db75efb /eval
parent416d6daaffb6f4bcaca02622ae6e50b52725993e (diff)
assert on cell type also
Diffstat (limited to 'eval')
-rw-r--r--eval/src/vespa/eval/tensor/dense/mutable_dense_tensor_view.h1
1 files changed, 1 insertions, 0 deletions
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
index f7efd651ab4..6b1011033a0 100644
--- a/eval/src/vespa/eval/tensor/dense/mutable_dense_tensor_view.h
+++ b/eval/src/vespa/eval/tensor/dense/mutable_dense_tensor_view.h
@@ -17,6 +17,7 @@ private:
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; }