aboutsummaryrefslogtreecommitdiffstats
path: root/eval/src/vespa/eval/instruction/add_trivial_dimension_optimizer.h
blob: 0b69e8a4743776acd75e2e3cfc9b75cd0fa49c41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/eval/eval/tensor_function.h>

namespace vespalib::eval {

/**
 * Tensor function optimizer for efficient adding of dimensions with
 * known size 1.
 **/
struct AddTrivialDimensionOptimizer {
    static const TensorFunction &optimize(const TensorFunction &expr, Stash &stash);
};

} // namespace vespalib::eval