Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
21205070
Unverified
Commit
21205070
authored
Feb 08, 2019
by
Robert Kimball
Committed by
GitHub
Feb 08, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into master
parents
1d0256f3
c19e48a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
intelgpu_op_custom_kernels.cpp
src/ngraph/runtime/intelgpu/intelgpu_op_custom_kernels.cpp
+4
-1
backend_unary_elementwise.in.cpp
test/backend_unary_elementwise.in.cpp
+18
-0
No files found.
src/ngraph/runtime/intelgpu/intelgpu_op_custom_kernels.cpp
View file @
21205070
...
...
@@ -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
:
...
...
test/backend_unary_elementwise.in.cpp
View file @
21205070
...
...
@@ -246,6 +246,24 @@ NGRAPH_TEST(${BACKEND_NAME}, floor)
EXPECT_EQ
((
vector
<
float
>
{
-
3.0
f
,
-
2.0
f
,
0.0
f
,
4.0
f
}),
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
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment