Commit 2ac09df3 authored by Paul's avatar Paul
Browse files

Formastting

parent 85d70419
...@@ -27,7 +27,7 @@ struct raw_data : raw_data_base ...@@ -27,7 +27,7 @@ struct raw_data : raw_data_base
template <class Stream> template <class Stream>
friend Stream& operator<<(Stream& os, const Derived& d) friend Stream& operator<<(Stream& os, const Derived& d)
{ {
if (d.empty()) if(d.empty())
os << "empty"; os << "empty";
else else
d.visit([&](auto x) { os << x; }); d.visit([&](auto x) { os << x; });
...@@ -44,7 +44,7 @@ struct raw_data : raw_data_base ...@@ -44,7 +44,7 @@ struct raw_data : raw_data_base
void visit_at(Visitor v, std::size_t n = 0) const void visit_at(Visitor v, std::size_t n = 0) const
{ {
auto&& derived = static_cast<const Derived&>(*this); auto&& derived = static_cast<const Derived&>(*this);
if (derived.empty()) if(derived.empty())
MIGRAPHX_THROW("Visiting empty data!"); MIGRAPHX_THROW("Visiting empty data!");
auto&& s = derived.get_shape(); auto&& s = derived.get_shape();
auto&& buffer = derived.data(); auto&& buffer = derived.data();
...@@ -62,7 +62,7 @@ struct raw_data : raw_data_base ...@@ -62,7 +62,7 @@ struct raw_data : raw_data_base
void visit(Visitor v) const void visit(Visitor v) const
{ {
auto&& derived = static_cast<const Derived&>(*this); auto&& derived = static_cast<const Derived&>(*this);
if (derived.empty()) if(derived.empty())
MIGRAPHX_THROW("Visiting empty data!"); MIGRAPHX_THROW("Visiting empty data!");
auto&& s = derived.get_shape(); auto&& s = derived.get_shape();
auto&& buffer = derived.data(); auto&& buffer = derived.data();
......
...@@ -448,7 +448,7 @@ argument program::eval(std::unordered_map<std::string, argument> params) const ...@@ -448,7 +448,7 @@ argument program::eval(std::unordered_map<std::string, argument> params) const
this->debug_print(ins); this->debug_print(ins);
auto result = check_context(f); auto result = check_context(f);
ctx.finish(); ctx.finish();
if (trace_level > 1) if(trace_level > 1)
std::cout << "Ouput: " << result << std::endl; std::cout << "Ouput: " << result << std::endl;
return result; return result;
}); });
......
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