"docker/vscode:/vscode.git/clone" did not exist on "d8bcb33f4ba56e334482ba2833a6b89fba23107a"
Commit eeedc246 authored by Ted Themistokleous's avatar Ted Themistokleous
Browse files

fixup! Fix Nonzero to track data value with sentinel value based on elements

parent 21b7dad4
...@@ -5176,8 +5176,8 @@ TEST_CASE(nonzero_test) ...@@ -5176,8 +5176,8 @@ TEST_CASE(nonzero_test)
auto result = p.eval({}).back(); auto result = p.eval({}).back();
std::vector<int64_t> result_vector; std::vector<int64_t> result_vector;
result.visit([&](auto output) { result_vector.assign(output.begin(), output.end()); }); result.visit([&](auto output) { result_vector.assign(output.begin(), output.end()); });
std::vector<int64_t> gold = {0, 0, 0, 0, 1, 1, 1, 1, 36, 36, 36, 36, 0, 0, 1, 1, 0, 0, std::vector<int64_t> gold = {0, 0, 0, 0, 1, 1, 1, 1, 36, 36, 36, 36, 0, 0, 1, 1, 0, 0,
1, 1, 36, 36, 36, 36, 0, 1, 0, 2, 0, 2, 0, 2, 36, 36, 36, 36}; 1, 1, 36, 36, 36, 36, 0, 1, 0, 2, 0, 2, 0, 2, 36, 36, 36, 36};
EXPECT(migraphx::verify_range(result_vector, gold)); EXPECT(migraphx::verify_range(result_vector, gold));
} }
......
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