fwd_conv_batchnorm_rewrite.hpp 544 Bytes
Newer Older
1
2
3
4
5
#ifndef MIGRAPH_GUARD_RTGLIB_FWD_CONV_BATCHNORM_REWRITE_HPP
#define MIGRAPH_GUARD_RTGLIB_FWD_CONV_BATCHNORM_REWRITE_HPP

#include <string>
#include <migraph/instruction_ref.hpp>
6
#include <migraph/config.hpp>
7

8
9
namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
10
11
12

struct program;

Paul's avatar
Paul committed
13
14
15
/**
 * Rewrite batchnorm to a multiply and add.
 */
16
17
18
19
20
21
struct fwd_conv_batchnorm_rewrite
{
    std::string name() const { return "fwd_conv_batchnorm_rewrite"; }
    void apply(program& p) const;
};

22
} // namespace MIGRAPH_INLINE_NS
23
24
25
} // namespace migraph

#endif