blob: afd50bf9b2c84d88b2b699e364ff047c1ee0aecd [file] [log] [blame]
Georgios Pinitas7021ef02023-08-22 08:25:57 +01001
2// Copyright (c) 2023, ARM Limited.
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16#ifndef VERIFIERS_H_
17#define VERIFIERS_H_
18
19#include "verify_utils.h"
20
21namespace TosaReference
22{
23/// \brief Perform dot-product based verification
24///
25/// \param ref Reference tensor
26/// \param refBnd Reference tensor when ran on abs(input)
27/// \param imp Implementation resulting tensor
28/// \param dpInfo Dot-product verification meta-data
29///
30/// \return True if compliant else false
31bool verifyDotProduct(const CTensor* ref,
32 const CTensor* refBnd,
33 const CTensor* imp,
34 const DotProductVerifyInfo& dpInfo);
35
36}; // namespace TosaReference
37
38#endif // VERIFIERS_H_