diff options
author | Håvard Pettersen <havardpe@oath.com> | 2019-07-09 13:26:07 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2019-07-09 13:27:18 +0000 |
commit | cb69ce48932ce02f27f5d64e74bcaf2f57b660e7 (patch) | |
tree | 3661a7c0c07ed9fce80b986c32e3fe5b163e8953 /eval/src | |
parent | f1a9976c46aa77325dda5053f8d12fba3462c98e (diff) |
float cells in attribute
also assert for cell type consistency in dense tensor view
Diffstat (limited to 'eval/src')
-rw-r--r-- | eval/src/vespa/eval/tensor/dense/dense_tensor_view.h | 1 |
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: |