Commit 1e1fa62e authored by Khalique's avatar Khalique
Browse files

formatting

parent faddc14e
......@@ -29,9 +29,9 @@ void eliminate_pad::apply(program& p) const
template <class T>
void eliminate_pad::update_op(T,
const instruction_ref& input,
const instruction_ref& ins,
program& p) const
const instruction_ref& input,
const instruction_ref& ins,
program& p) const
{
auto pad_op = any_cast<op::pad>(input->get_operator());
if(!pad_op.symmetric())
......
......@@ -13,7 +13,7 @@ inline namespace MIGRAPHX_INLINE_NS {
struct program;
/**
* Remove pads if they can be written as an
* Remove pads if they can be written as an
* attribute to another op (im2col, convolution, pooling)
*/
struct eliminate_pad
......
......@@ -718,7 +718,8 @@ struct pad
bool symmetric() const
{
std::size_t num_dims = pads.size() / 2;
return std::equal(pads.begin(), pads.begin() + num_dims, pads.begin() + num_dims, pads.end());
return std::equal(
pads.begin(), pads.begin() + num_dims, pads.begin() + num_dims, pads.end());
}
};
......
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