Commit 0f1bed2c authored by Paul's avatar Paul
Browse files

Ignore seed for now

parent fd14a223
...@@ -16,12 +16,11 @@ struct xorshf96_generator ...@@ -16,12 +16,11 @@ struct xorshf96_generator
constexpr T operator()() constexpr T operator()()
{ {
unsigned long t = 0;
x ^= x << 16; x ^= x << 16;
x ^= x >> 5; x ^= x >> 5;
x ^= x << 1; x ^= x << 1;
t = x; unsigned long t = x;
x = y; x = y;
y = z; y = z;
z = t ^ x ^ y; z = t ^ x ^ y;
...@@ -31,7 +30,7 @@ struct xorshf96_generator ...@@ -31,7 +30,7 @@ struct xorshf96_generator
}; };
template <class T> template <class T>
std::vector<T> generate_tensor_data(migraph::shape s, std::mt19937::result_type seed = 0) std::vector<T> generate_tensor_data(migraph::shape s, std::mt19937::result_type)
{ {
std::vector<T> result(s.elements()); std::vector<T> result(s.elements());
std::generate(result.begin(), result.end(), xorshf96_generator<T>{}); std::generate(result.begin(), result.end(), xorshf96_generator<T>{});
......
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