Commit d0575532 authored by Paul's avatar Paul
Browse files

Formatting

parent 3a3fbc84
...@@ -296,10 +296,7 @@ struct transpose ...@@ -296,10 +296,7 @@ struct transpose
{ {
return {std::move(output_shape), std::move(args.front().data)}; return {std::move(output_shape), std::move(args.front().data)};
} }
int output_alias(const std::vector<shape>&) const int output_alias(const std::vector<shape>&) const { return 0; }
{
return 0;
}
}; };
struct contiguous struct contiguous
...@@ -363,10 +360,7 @@ struct concat ...@@ -363,10 +360,7 @@ struct concat
new_lens[axis] = new_dim_axis; new_lens[axis] = new_dim_axis;
return {type, new_lens}; return {type, new_lens};
} }
int output_alias(const std::vector<shape>&) const int output_alias(const std::vector<shape>&) const { return 0; }
{
return 0;
}
}; };
struct slice struct slice
...@@ -448,10 +442,7 @@ struct slice ...@@ -448,10 +442,7 @@ struct slice
auto offset = compute_offset(input.get_shape()) * output_shape.type_size(); auto offset = compute_offset(input.get_shape()) * output_shape.type_size();
return {std::move(output_shape), [=] { return input.data() + offset; }}; return {std::move(output_shape), [=] { return input.data() + offset; }};
} }
int output_alias(const std::vector<shape>&) const int output_alias(const std::vector<shape>&) const { return 0; }
{
return 0;
}
}; };
struct squeeze struct squeeze
...@@ -499,10 +490,7 @@ struct squeeze ...@@ -499,10 +490,7 @@ struct squeeze
{ {
return {std::move(output_shape), std::move(args.front().data)}; return {std::move(output_shape), std::move(args.front().data)};
} }
int output_alias(const std::vector<shape>&) const int output_alias(const std::vector<shape>&) const { return 0; }
{
return 0;
}
}; };
struct unsqueeze struct unsqueeze
...@@ -541,10 +529,7 @@ struct unsqueeze ...@@ -541,10 +529,7 @@ struct unsqueeze
{ {
return {std::move(output_shape), std::move(args.front().data)}; return {std::move(output_shape), std::move(args.front().data)};
} }
int output_alias(const std::vector<shape>&) const int output_alias(const std::vector<shape>&) const { return 0; }
{
return 0;
}
}; };
struct reshape struct reshape
...@@ -596,10 +581,7 @@ struct reshape ...@@ -596,10 +581,7 @@ struct reshape
{ {
return {std::move(output_shape), std::move(args.front().data)}; return {std::move(output_shape), std::move(args.front().data)};
} }
int output_alias(const std::vector<shape>&) const int output_alias(const std::vector<shape>&) const { return 0; }
{
return 0;
}
}; };
struct dot struct dot
...@@ -737,10 +719,7 @@ struct flatten ...@@ -737,10 +719,7 @@ struct flatten
{ {
return {std::move(output_shape), std::move(args.front().data)}; return {std::move(output_shape), std::move(args.front().data)};
} }
int output_alias(const std::vector<shape>&) const int output_alias(const std::vector<shape>&) const { return 0; }
{
return 0;
}
}; };
struct broadcast struct broadcast
{ {
...@@ -783,10 +762,7 @@ struct broadcast ...@@ -783,10 +762,7 @@ struct broadcast
{ {
return {std::move(output_shape), std::move(args.at(0).data)}; return {std::move(output_shape), std::move(args.at(0).data)};
} }
int output_alias(const std::vector<shape>&) const int output_alias(const std::vector<shape>&) const { return 0; }
{
return 0;
}
}; };
struct scalar struct scalar
...@@ -808,10 +784,7 @@ struct scalar ...@@ -808,10 +784,7 @@ struct scalar
{ {
return {std::move(output_shape), std::move(args.at(0).data)}; return {std::move(output_shape), std::move(args.at(0).data)};
} }
int output_alias(const std::vector<shape>&) const int output_alias(const std::vector<shape>&) const { return 0; }
{
return 0;
}
}; };
struct binary struct binary
...@@ -864,10 +837,7 @@ struct load ...@@ -864,10 +837,7 @@ struct load
{ {
return {s, args[0].data() + offset}; return {s, args[0].data() + offset};
} }
int output_alias(const std::vector<shape>&) const int output_alias(const std::vector<shape>&) const { return 0; }
{
return 0;
}
}; };
struct outline struct outline
......
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