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

#include "value_compare.h"
#include <vespa/eval/eval/value_codec.h>

namespace vespalib::eval {

bool operator==(const Value &lhs, const Value &rhs)
{
    return TensorSpec::from_value(lhs) == TensorSpec::from_value(rhs);
}

std::ostream &operator<<(std::ostream &out, const Value &value)
{
    return out << TensorSpec::from_value(value);
}

} // namespace vespalib::eval