Commit c8609f3a authored by Robert Kimball's avatar Robert Kimball Committed by Scott Cyphers

fix windows warnings (#2767)

parent 2223257c
...@@ -252,7 +252,7 @@ static void broadcast_test_helper(const Shape& shape_a, const Shape& shape_r, co ...@@ -252,7 +252,7 @@ static void broadcast_test_helper(const Shape& shape_a, const Shape& shape_r, co
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
vector<float> inp_data(shape_size<const Shape>(shape_a)); vector<float> inp_data(shape_size<const Shape>(shape_a));
iota(inp_data.begin(), inp_data.end(), 1); iota(inp_data.begin(), inp_data.end(), 1.f);
auto f = auto f =
make_shared<Function>(make_shared<op::Broadcast>(A, shape_r, axis), ParameterVector{A}); make_shared<Function>(make_shared<op::Broadcast>(A, shape_r, axis), ParameterVector{A});
......
...@@ -276,7 +276,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_3d_transpose_021) ...@@ -276,7 +276,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_3d_transpose_021)
auto f = make_shared<Function>(r, ParameterVector{A}); auto f = make_shared<Function>(r, ParameterVector{A});
vector<float> a_data(shape_size(shape_a)); vector<float> a_data(shape_size(shape_a));
iota(a_data.begin(), a_data.end(), 1); iota(a_data.begin(), a_data.end(), 1.f);
auto backend = runtime::Backend::create("${BACKEND_NAME}"); auto backend = runtime::Backend::create("${BACKEND_NAME}");
...@@ -302,7 +302,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_3d_transpose_210) ...@@ -302,7 +302,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_3d_transpose_210)
auto f = make_shared<Function>(r, ParameterVector{A}); auto f = make_shared<Function>(r, ParameterVector{A});
vector<float> a_data(shape_size(shape_a)); vector<float> a_data(shape_size(shape_a));
iota(a_data.begin(), a_data.end(), 1); iota(a_data.begin(), a_data.end(), 1.f);
auto backend = runtime::Backend::create("${BACKEND_NAME}"); auto backend = runtime::Backend::create("${BACKEND_NAME}");
...@@ -328,7 +328,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_3d_transpose_201) ...@@ -328,7 +328,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_3d_transpose_201)
auto f = make_shared<Function>(r, ParameterVector{A}); auto f = make_shared<Function>(r, ParameterVector{A});
vector<float> a_data(shape_size(shape_a)); vector<float> a_data(shape_size(shape_a));
iota(a_data.begin(), a_data.end(), 1); iota(a_data.begin(), a_data.end(), 1.f);
auto backend = runtime::Backend::create("${BACKEND_NAME}"); auto backend = runtime::Backend::create("${BACKEND_NAME}");
...@@ -354,7 +354,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_3d_transpose_102) ...@@ -354,7 +354,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_3d_transpose_102)
auto f = make_shared<Function>(r, ParameterVector{A}); auto f = make_shared<Function>(r, ParameterVector{A});
vector<float> a_data(shape_size(shape_a)); vector<float> a_data(shape_size(shape_a));
iota(a_data.begin(), a_data.end(), 1); iota(a_data.begin(), a_data.end(), 1.f);
auto backend = runtime::Backend::create("${BACKEND_NAME}"); auto backend = runtime::Backend::create("${BACKEND_NAME}");
...@@ -380,7 +380,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_3d_transpose_120) ...@@ -380,7 +380,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_3d_transpose_120)
auto f = make_shared<Function>(r, ParameterVector{A}); auto f = make_shared<Function>(r, ParameterVector{A});
vector<float> a_data(shape_size(shape_a)); vector<float> a_data(shape_size(shape_a));
iota(a_data.begin(), a_data.end(), 1); iota(a_data.begin(), a_data.end(), 1.f);
auto backend = runtime::Backend::create("${BACKEND_NAME}"); auto backend = runtime::Backend::create("${BACKEND_NAME}");
...@@ -406,7 +406,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_4d_transpose) ...@@ -406,7 +406,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_4d_transpose)
auto f = make_shared<Function>(r, ParameterVector{A}); auto f = make_shared<Function>(r, ParameterVector{A});
vector<float> a_data(shape_size(shape_a)); vector<float> a_data(shape_size(shape_a));
iota(a_data.begin(), a_data.end(), 1); iota(a_data.begin(), a_data.end(), 1.f);
auto backend = runtime::Backend::create("${BACKEND_NAME}"); auto backend = runtime::Backend::create("${BACKEND_NAME}");
...@@ -438,7 +438,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_4d_no_transpose) ...@@ -438,7 +438,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_4d_no_transpose)
auto f = make_shared<Function>(r, ParameterVector{A}); auto f = make_shared<Function>(r, ParameterVector{A});
vector<float> a_data(shape_size(shape_a)); vector<float> a_data(shape_size(shape_a));
iota(a_data.begin(), a_data.end(), 1); iota(a_data.begin(), a_data.end(), 1.f);
auto backend = runtime::Backend::create("${BACKEND_NAME}"); auto backend = runtime::Backend::create("${BACKEND_NAME}");
...@@ -522,7 +522,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_6d) ...@@ -522,7 +522,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_6d)
Shape shape_r{3, 2, 2, 4, 3, 2}; Shape shape_r{3, 2, 2, 4, 3, 2};
vector<float> a_data(shape_size(shape_a)); vector<float> a_data(shape_size(shape_a));
iota(a_data.begin(), a_data.end(), 1); iota(a_data.begin(), a_data.end(), 1.f);
auto r = make_shared<op::Reshape>(A, AxisVector{2, 4, 0, 5, 3, 1}, shape_r); auto r = make_shared<op::Reshape>(A, AxisVector{2, 4, 0, 5, 3, 1}, shape_r);
auto f = make_shared<Function>(r, ParameterVector{A}); auto f = make_shared<Function>(r, ParameterVector{A});
...@@ -577,7 +577,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_shufflenet_5d) ...@@ -577,7 +577,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_shufflenet_5d)
Shape shape_r{1, 112, 56, 56}; Shape shape_r{1, 112, 56, 56};
vector<float> a_data(shape_size(shape_a)); vector<float> a_data(shape_size(shape_a));
iota(a_data.begin(), a_data.end(), 1); iota(a_data.begin(), a_data.end(), 1.f);
auto r0 = make_shared<op::Reshape>(A, AxisVector{0, 1, 2, 3}, shape_b); auto r0 = make_shared<op::Reshape>(A, AxisVector{0, 1, 2, 3}, shape_b);
auto r1 = make_shared<op::Reshape>(r0, AxisVector{0, 2, 1, 3, 4}, shape_c); auto r1 = make_shared<op::Reshape>(r0, AxisVector{0, 2, 1, 3, 4}, shape_c);
......
...@@ -168,7 +168,7 @@ NGRAPH_TEST(${BACKEND_NAME}, sum_matrix_6d) ...@@ -168,7 +168,7 @@ NGRAPH_TEST(${BACKEND_NAME}, sum_matrix_6d)
auto result_ref = backend_ref->create_tensor(element::f32, shape_rt); auto result_ref = backend_ref->create_tensor(element::f32, shape_rt);
vector<float> inp_data(shape_size<const Shape>(shape_a)); vector<float> inp_data(shape_size<const Shape>(shape_a));
iota(inp_data.begin(), inp_data.end(), 1); iota(inp_data.begin(), inp_data.end(), 1.f);
copy_data(a_wrk, inp_data); copy_data(a_wrk, inp_data);
copy_data(a_ref, inp_data); copy_data(a_ref, inp_data);
......
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