Commit e35ad617 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 4eaf846f
......@@ -17,7 +17,7 @@ void auto_contiguous::apply(module& p) const
auto&& attr = ins->get_operator().attributes();
if((attr.contains(key) and attr.at(key).to<bool>()))
{
auto args = ins->inputs();
auto args = ins->inputs();
auto new_args = args;
std::transform(args.begin(), args.end(), new_args.begin(), [&](auto in) {
return p.replace_instruction(ins, make_op("contiguous"), in);
......
......@@ -27,10 +27,7 @@ struct reshape
return pack(f(self.dims, "dims"));
}
value attributes() const
{
return {{"standard_input_shape", true}};
}
value attributes() const { return {{"standard_input_shape", true}}; }
std::string name() const { return "reshape"; }
shape compute_shape(std::vector<shape> inputs) const
......
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