Skip to content

Commit

Permalink
Merge pull request #90 from pfnet-research/remove_undetermistic_opera…
Browse files Browse the repository at this point in the history
…tion

remove random operation
  • Loading branch information
okdshin authored Sep 28, 2018
2 parents 23287ce + 2505cfe commit d59aea8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions menoh/onnx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <fstream>
#include <functional>
#include <numeric>
#include <random>
#include <unordered_map>
#include <utility>

Expand Down Expand Up @@ -182,10 +181,6 @@ namespace menoh_impl {
trim_dropout(node_list);
trim_reshape(node_list);

std::random_device rd;
std::mt19937 g(rd());
std::shuffle(node_list.begin(), node_list.end(), g);

std::vector<std::string> all_parameter_name_list;
all_parameter_name_list.reserve(
onnx_model.graph().initializer().size());
Expand Down

0 comments on commit d59aea8

Please sign in to comment.