"magic_pdf/git@developer.sourcefind.cn:wangsen/mineru.git" did not exist on "083b787c154c9e2601d1a8998abcd7d6230a78fe"
Commit 6e53e190 authored by Khalique's avatar Khalique
Browse files

formatting

parent fd491ac1
...@@ -17,13 +17,13 @@ pad(hipStream_t stream, argument result, argument arg1, float value, std::vector ...@@ -17,13 +17,13 @@ pad(hipStream_t stream, argument result, argument arg1, float value, std::vector
std::size_t nelements = arg1.get_shape().elements(); std::size_t nelements = arg1.get_shape().elements();
if(float_equal(value, std::numeric_limits<float>::lowest())) if(float_equal(value, std::numeric_limits<float>::lowest()))
{ {
auto val = auto val = device_cast(std::numeric_limits<decltype(value)>::lowest());
device_cast(std::numeric_limits<decltype(value)>::lowest());
nary(stream, result)([=] { return val; }); nary(stream, result)([=] { return val; });
// visit_all(result)([&](auto output) { // visit_all(result)([&](auto output) {
// auto* outptr = device_cast(output.data()); // auto* outptr = device_cast(output.data());
// auto val = // auto val =
// device_cast(std::numeric_limits<typename decltype(output)::value_type>::lowest()); // device_cast(std::numeric_limits<typename
// decltype(output)::value_type>::lowest());
// gs_launch(stream, nelements)([=](auto i) { outptr[i] = val; }); // gs_launch(stream, nelements)([=](auto i) { outptr[i] = val; });
// }); // });
......
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