Unverified Commit 21205070 authored by Robert Kimball's avatar Robert Kimball Committed by GitHub

Merge branch 'master' into master

parents 1d0256f3 c19e48a6
......@@ -1291,7 +1291,10 @@ void runtime::intelgpu::do_custom_eltwise_operation(cldnn::topology& topology,
}
case CUSTOM_ELTWISE::Floor:
{
writer << "floor";
if (input_type.is_real())
{
writer << "floor";
}
break;
}
case CUSTOM_ELTWISE::Sign:
......
......@@ -246,6 +246,24 @@ NGRAPH_TEST(${BACKEND_NAME}, floor)
EXPECT_EQ((vector<float>{-3.0f, -2.0f, 0.0f, 4.0f}), read_vector<float>(result));
}
NGRAPH_TEST(${BACKEND_NAME}, floor_int32)
{
Shape shape{2, 2};
auto A = make_shared<op::Parameter>(element::i32, shape);
auto f = make_shared<Function>(make_shared<op::Floor>(A), ParameterVector{A});
auto backend = runtime::Backend::create("${BACKEND_NAME}");
// Create some tensors for input/output
auto a = backend->create_tensor(element::i32, shape);
copy_data(a, vector<int32_t>{-2, -136314880, 0, 4});
auto result = backend->create_tensor(element::i32, shape);
auto handle = backend->compile(f);
backend->call_with_validate(handle, {result}, {a});
EXPECT_EQ((vector<int32_t>{-2, -136314880, 0, 4}), read_vector<int32_t>(result));
}
NGRAPH_TEST(${BACKEND_NAME}, log)
{
Shape shape{2, 2, 2};
......
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