verify.hpp 1.31 KB
Newer Older
Paul's avatar
Paul committed
1
2
3
#ifndef MIGRAPHX_GUARD_RTGLIB_DRIVER_VERIFY_HPP
#define MIGRAPHX_GUARD_RTGLIB_DRIVER_VERIFY_HPP

kahmed10's avatar
kahmed10 committed
4
#include "precision.hpp"
Paul's avatar
Paul committed
5
6
7
8
9
10
#include <migraphx/program.hpp>

namespace migraphx {
namespace driver {
inline namespace MIGRAPHX_INLINE_NS {

11
12
void verify_program(const std::string& name,
                    const program& p,
13
                    const target& t,
14
                    compile_options options     = compile_options{},
kahmed10's avatar
kahmed10 committed
15
                    precision quantize          = precision::fp32,
16
17
                    const parameter_map& inputs = {},
                    double tolerance            = 100);
18
void verify_instructions(const program& prog,
19
                         const target& t,
20
                         compile_options options = compile_options{},
kahmed10's avatar
kahmed10 committed
21
                         precision quantize      = precision::fp32,
22
23
                         double tolerance        = 80);
void verify_reduced_program(const program& p,
24
                            const target& t,
25
                            compile_options options     = compile_options{},
kahmed10's avatar
kahmed10 committed
26
                            precision quantize          = precision::fp32,
27
28
                            const parameter_map& inputs = {},
                            double tolerance            = 80);
Paul's avatar
Paul committed
29
30
31
32
33
34

} // namespace MIGRAPHX_INLINE_NS
} // namespace driver
} // namespace migraphx

#endif