Commit 225c2d64 authored by Paul's avatar Paul
Browse files

Formatting

parent 24cc6ea8
...@@ -27,9 +27,7 @@ literal generate_literal(shape s, unsigned long seed) ...@@ -27,9 +27,7 @@ literal generate_literal(shape s, unsigned long seed)
// TODO: Move to literal.cpp // TODO: Move to literal.cpp
literal abs(literal l) literal abs(literal l)
{ {
return transform(l, [](auto x) { return transform(l, [](auto x) { return std::fabs(x); });
return std::fabs(x);
});
} }
} // namespace migraph } // namespace migraph
...@@ -34,9 +34,9 @@ template <class T> ...@@ -34,9 +34,9 @@ template <class T>
struct xorshf96_generator struct xorshf96_generator
{ {
unsigned long seed = 0; unsigned long seed = 0;
unsigned long x = 123456789; unsigned long x = 123456789;
unsigned long y = 362436069; unsigned long y = 362436069;
unsigned long z = 521288629 ^ seed; unsigned long z = 521288629 ^ seed;
constexpr T operator()() noexcept constexpr T operator()() noexcept
{ {
......
...@@ -94,7 +94,7 @@ struct literal : raw_data<literal> ...@@ -94,7 +94,7 @@ struct literal : raw_data<literal>
} }
}; };
template<class F> template <class F>
literal transform(literal l, F f) literal transform(literal l, F f)
{ {
literal result; literal 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