Commit 5d556dbd authored by Khalique's avatar Khalique
Browse files

formatting

parent 29d47724
......@@ -43,7 +43,7 @@ void eliminate_pad::update_op(T,
std::vector<int64_t> pads = pad_op.pads;
std::array<size_t, 2> new_pads{static_cast<size_t>(pads[2]), static_cast<size_t>(pads[3])};
T op = any_cast<T>(ins->get_operator());
T op = any_cast<T>(ins->get_operator());
op.padding = new_pads;
std::vector<instruction_ref> new_inputs{ins->inputs()};
......
......@@ -62,7 +62,6 @@ struct convolution
stride[1] +
1)),
}};
}
};
......
......@@ -16,8 +16,8 @@ pad(hipStream_t stream, argument result, argument arg1, float value, std::vector
{
std::size_t nelements = arg1.get_shape().elements();
visit_all(result)([&](auto output) {
auto* outptr = device_cast(output.data());
using type = typename decltype(output)::value_type;
auto* outptr = device_cast(output.data());
using type = typename decltype(output)::value_type;
device_type<type> device_val = value;
if(float_equal(value, std::numeric_limits<float>::lowest()))
{
......
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