summaryrefslogtreecommitdiffstats
path: root/eval
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2021-03-16 11:58:35 +0000
committerArne Juul <arnej@verizonmedia.com>2021-03-17 14:42:24 +0000
commit8374ae5b5f6c868967485de117bd404e0c73a91c (patch)
tree441834cc7cc6db58e060c3054fd06682c193d16b /eval
parentb8f4212f2c9bd753b4fdd3a4e9e152ca650f4522 (diff)
constify find_all()
Diffstat (limited to 'eval')
-rw-r--r--eval/src/vespa/eval/eval/test/eval_fixture.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval/src/vespa/eval/eval/test/eval_fixture.h b/eval/src/vespa/eval/eval/test/eval_fixture.h
index 9bd2facb25a..483f306794b 100644
--- a/eval/src/vespa/eval/eval/test/eval_fixture.h
+++ b/eval/src/vespa/eval/eval/test/eval_fixture.h
@@ -78,7 +78,7 @@ private:
TensorSpec _result;
template <typename T>
- void find_all(const TensorFunction &node, std::vector<const T *> &list) {
+ void find_all(const TensorFunction &node, std::vector<const T *> &list) const {
if (auto self = as<T>(node)) {
list.push_back(self);
}
@@ -96,7 +96,7 @@ public:
bool optimized = true, bool allow_mutable = false);
~EvalFixture() {}
template <typename T>
- std::vector<const T *> find_all() {
+ std::vector<const T *> find_all() const {
std::vector<const T *> list;
find_all(_tensor_function, list);
return list;