38 static constexpr int TTSIZE =
sizeof(TT);
43 adf::port<input> pin[1];
44 adf::port<output> pout[1];
47 std::vector<TT> weights,
51 static_assert(W*TTSIZE < MAX_PARAM_BYTES);
52 k[0] = adf::kernel::create_object<MAC<TT, B, W, IS_RELU>>(weights, bias);
53 adf::source(k[0]) =
"mac.cc";
54 adf::headers(k[0]) = {
"mac.h"};
55 adf::runtime<ratio>(k[0]) = 0.6;
56 adf::repetition_count(k[0]) = repeat_cnt;
58 adf::connect<adf::window<B*W*TTSIZE>> (pin[0], k[0].in[0]);
59 adf::connect<adf::window<B*W*TTSIZE>> (k[0].out[0], pout[0]);