aboutsummaryrefslogtreecommitdiffstats
path: root/eval/src/vespa/eval/eval/test/value_compare.cpp
blob: 5c534295c284cd0e150ae9817367c5c7f5b11635 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Yahoo. 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