Georgios Pinitas | 7021ef0 | 2023-08-22 08:25:57 +0100 | [diff] [blame^] | 1 | |
| 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 | |
| 21 | namespace 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 |
| 31 | bool 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_ |