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