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

formatting

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