117 auto ifm =
m.domain().make({1 , 3 , 3 });
118 auto ker =
m.domain().make({1 , 1 , 3 , 3 });
123 auto ofm_ch =
m.var().make();
124 auto ofm_row =
m.var().make();
125 auto ofm_col =
m.var().make();
127 auto ker_ch =
m.var().make();
128 auto ker_row =
m.var().make();
129 auto ker_col =
m.var().make();
134 m.var().bound(ofm_ch) = Bound{0, 1};
135 m.var().bound(ofm_row) = Bound{0, 1};
136 m.var().bound(ofm_col) = Bound{0, 1};
138 m.var().bound(ker_ch) = Bound{0, 1};
139 m.var().bound(ker_row) = Bound{0, 3};
140 m.var().bound(ker_col) = Bound{0, 3};
145 auto ifm_value = ifm(ker_ch, ofm_row + ker_row, ofm_col + ker_col);
146 auto ker_value = ker(ofm_ch, ker_ch, ker_row, ker_col);
148 m.push(ifm_value * ker_value);
149 m.ret(ofm(ofm_ch, ofm_row, ofm_col));
Domain make(std::initializer_list< uint32_t > dims)