summaryrefslogtreecommitdiffstats
path: root/eval
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@oath.com>2019-07-09 13:26:07 +0000
committerHåvard Pettersen <havardpe@oath.com>2019-07-09 13:27:18 +0000
commitcb69ce48932ce02f27f5d64e74bcaf2f57b660e7 (patch)
tree3661a7c0c07ed9fce80b986c32e3fe5b163e8953 /eval
parentf1a9976c46aa77325dda5053f8d12fba3462c98e (diff)
float cells in attribute
also assert for cell type consistency in dense tensor view
Diffstat (limited to 'eval')
-rw-r--r--eval/src/vespa/eval/tensor/dense/dense_tensor_view.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval/src/vespa/eval/tensor/dense/dense_tensor_view.h b/eval/src/vespa/eval/tensor/dense/dense_tensor_view.h
index 60f85c38659..c09202e50d0 100644
--- a/eval/src/vespa/eval/tensor/dense/dense_tensor_view.h
+++ b/eval/src/vespa/eval/tensor/dense/dense_tensor_view.h
@@ -46,6 +46,7 @@ public:
void accept(TensorVisitor &visitor) const override;
protected:
void initCellsRef(TypedCells cells_in) {
+ assert(_typeRef.cell_type() == cells_in.type);
_cellsRef = cells_in;
}
private: