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

clang format

parent 610aa6a7
...@@ -18,8 +18,8 @@ namespace op { ...@@ -18,8 +18,8 @@ namespace op {
struct capture struct capture
{ {
std::function<void(std::vector<argument>) f; std::function < void(std::vector<argument>) f;
template<class Self, class F> template <class Self, class F>
static auto reflect(Self& self, F f) static auto reflect(Self& self, F f)
{ {
return pack(f(self.f, "func")); return pack(f(self.f, "func"));
...@@ -27,10 +27,7 @@ struct capture ...@@ -27,10 +27,7 @@ struct capture
std::string name() const { return "capputure"; } std::string name() const { return "capputure"; }
shape compute_shape(std::vector<shape> inputs) const shape compute_shape(std::vector<shape> inputs) const { return inputs.front(); }
{
return inputs.front();
}
argument compute(const shape& output_shape, std::vector<argument> args) const argument compute(const shape& output_shape, std::vector<argument> args) 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