Unverified Commit 61108fdf authored by Max Podkorytov's avatar Max Podkorytov
Browse files

reorder score mod and scale in host verification

parent 8c96b18b
...@@ -1373,7 +1373,7 @@ bool run(const ck_tile::ArgParser& arg_parser) ...@@ -1373,7 +1373,7 @@ bool run(const ck_tile::ArgParser& arg_parser)
s_host_ref, s_host_ref,
ck_tile::identity{}, ck_tile::identity{},
ck_tile::identity{}, ck_tile::identity{},
ck_tile::scales(scale_s)); ck_tile::identity{});
auto score_mod = [] (auto s, ck_tile::index_t b, ck_tile::index_t h, ck_tile::index_t q_idx, ck_tile::index_t v_idx) { auto score_mod = [] (auto s, ck_tile::index_t b, ck_tile::index_t h, ck_tile::index_t q_idx, ck_tile::index_t v_idx) {
(void) s; (void) b; (void) h; (void) q_idx; (void) v_idx; (void) s; (void) b; (void) h; (void) q_idx; (void) v_idx;
...@@ -1384,6 +1384,11 @@ bool run(const ck_tile::ArgParser& arg_parser) ...@@ -1384,6 +1384,11 @@ bool run(const ck_tile::ArgParser& arg_parser)
self(i) = score_mod(self(i), i[0], i[1], i[2], i[3]); self(i) = score_mod(self(i), i[0], i[1], i[2], i[3]);
}); });
auto scale_def = ck_tile::scales(scale_s);
s_host_ref.ForEach([&](auto& self, auto i) {
scale_def(self(i));
});
if(bias.type == bias_enum::elementwise_bias) if(bias.type == bias_enum::elementwise_bias)
{ {
// elementwise bias // elementwise bias
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment