Commit 79fe7d41 authored by Paul's avatar Paul
Browse files

Formatting

parent 84f88fcc
......@@ -5,11 +5,10 @@ namespace rtg {
rtg::argument generate_argument(rtg::shape s, std::mt19937::result_type seed)
{
rtg::argument result;
s.visit_type([&](auto as)
{
s.visit_type([&](auto as) {
using type = typename decltype(as)::type;
auto v = generate_tensor_data<type>(s, seed);
result = {s, [v]() mutable { return reinterpret_cast<char*>(v.data()); }};
auto v = generate_tensor_data<type>(s, seed);
result = {s, [v]() mutable { return reinterpret_cast<char*>(v.data()); }};
});
return result;
}
......
......@@ -6,7 +6,7 @@
namespace rtg {
template<class T>
template <class T>
std::vector<T> generate_tensor_data(rtg::shape s, std::mt19937::result_type seed = 0)
{
std::vector<T> result(s.elements());
......
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