Commit be7aef0b authored by Robert Kimball's avatar Robert Kimball

fix CI errors

parent ec9ed92c
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
// limitations under the License. // limitations under the License.
//***************************************************************************** //*****************************************************************************
#include <array>
#include <condition_variable> #include <condition_variable>
#include <mutex> #include <mutex>
#include <thread> #include <thread>
...@@ -165,7 +166,6 @@ vector<runtime::PerformanceCounter> run_benchmark_pipelined(shared_ptr<Function> ...@@ -165,7 +166,6 @@ vector<runtime::PerformanceCounter> run_benchmark_pipelined(shared_ptr<Function>
} }
} }
size_t current_iteration = 0;
thread threads[pipeline_depth]; thread threads[pipeline_depth];
for (size_t i = 0; i < pipeline_depth; i++) for (size_t i = 0; i < pipeline_depth; i++)
{ {
......
...@@ -24,21 +24,18 @@ ...@@ -24,21 +24,18 @@
#include "ngraph/serializer.hpp" #include "ngraph/serializer.hpp"
#include "ngraph/util.hpp" #include "ngraph/util.hpp"
using namespace std;
using namespace ngraph;
void set_denormals_flush_to_zero(); void set_denormals_flush_to_zero();
void random_init(shared_ptr<runtime::Tensor> tensor); void random_init(std::shared_ptr<ngraph::runtime::Tensor> tensor);
std::default_random_engine& get_random_engine(); std::default_random_engine& get_random_engine();
template <typename T> template <typename T>
void init_int_tensor(shared_ptr<runtime::Tensor> tensor, T min, T max) void init_int_tensor(std::shared_ptr<ngraph::runtime::Tensor> tensor, T min, T max)
{ {
size_t size = tensor->get_element_count(); size_t size = tensor->get_element_count();
uniform_int_distribution<T> dist(min, max); std::uniform_int_distribution<T> dist(min, max);
vector<T> vec(size); std::vector<T> vec(size);
for (T& element : vec) for (T& element : vec)
{ {
element = dist(get_random_engine()); element = dist(get_random_engine());
...@@ -47,11 +44,11 @@ void init_int_tensor(shared_ptr<runtime::Tensor> tensor, T min, T max) ...@@ -47,11 +44,11 @@ void init_int_tensor(shared_ptr<runtime::Tensor> tensor, T min, T max)
} }
template <typename T> template <typename T>
void init_real_tensor(shared_ptr<runtime::Tensor> tensor, T min, T max) void init_real_tensor(std::shared_ptr<ngraph::runtime::Tensor> tensor, T min, T max)
{ {
size_t size = tensor->get_element_count(); size_t size = tensor->get_element_count();
uniform_real_distribution<T> dist(min, max); std::uniform_real_distribution<T> dist(min, max);
vector<T> vec(size); std::vector<T> vec(size);
for (T& element : vec) for (T& element : vec)
{ {
element = dist(get_random_engine()); element = dist(get_random_engine());
......
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