hexagon: add TOP_K_MASK op (#31552)
* hexagon: add TOP_K_MASK op * Simplify Hexagon TOP_K_MASK kernel and do not duplicate host configuration
This commit is contained in:
1 parent
6cb3e672e8
commit
7071ba378a
10 files changed
+1011
No files matched your search
@@ -10249,6 +10249,13 @@ static std::vector<std::unique_ptr<test_case>> make_test_cases_eval() {
|
||||
test_cases.emplace_back(new test_top_k_mask(type, 256, 0, 0, 16, 0, false, 32));
|
||||
test_cases.emplace_back(new test_top_k_mask(type, 1001, 0, 0, 64, 0, false, 7, 1, 3));
|
||||
test_cases.emplace_back(new test_top_k_mask(type, 4096, 0, 0, 2048, 0, false, 5));
|
||||
// one row, no blocks, fewer than 128 picks: no read past the pick list
|
||||
test_cases.emplace_back(new test_top_k_mask(type, 1001, 0, 0, 16, 3, false, 1));
|
||||
test_cases.emplace_back(new test_top_k_mask(type, 256, 0, 0, 40, 0, true, 1));
|
||||
// one row (single-row kernel) with each optional input combination: no score and no extra, blocks only, blocks and extra without score
|
||||
test_cases.emplace_back(new test_top_k_mask(type, 512, 0, 0, 16, 0, false, 1));
|
||||
test_cases.emplace_back(new test_top_k_mask(type, 1024, 4, 200, 32, 0, false, 1));
|
||||
test_cases.emplace_back(new test_top_k_mask(type, 1024, 4, 200, 32, 5, false, 1));
|
||||
// cells with scores and extra cells
|
||||
test_cases.emplace_back(new test_top_k_mask(type, 512, 0, 0, 32, 5, true, 9));
|
||||
// blocks picked per head, the mask broadcast over the heads
|
||||
|
||||
Reference in new issue
Block a user