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
b00530a5
Commit
b00530a5
authored
Nov 02, 2018
by
Adam Procter
Committed by
Robert Kimball
Nov 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update unhandled op tests to support late validation (#1961)
parent
589a1c0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
backend_test.in.cpp
test/backend_test.in.cpp
+8
-2
No files found.
test/backend_test.in.cpp
View file @
b00530a5
...
...
@@ -57,14 +57,20 @@ class UnhandledOp : public ngraph::op::Op
{
public
:
UnhandledOp
(
const
std
::
shared_ptr
<
Node
>&
arg
)
:
Op
(
"Unsupported_op"
,
{}
)
:
Op
(
"Unsupported_op"
,
check_single_output_args
({
arg
})
)
{
set_output_type
(
0
,
arg
->
get_element_type
(),
arg
->
get_shape
()
);
constructor_validate_and_infer_types
(
);
}
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
{
return
make_shared
<
UnhandledOp
>
(
new_args
[
0
]);
}
protected
:
void
validate_and_infer_types
()
override
{
set_output_type
(
0
,
get_input_element_type
(
0
),
get_input_partial_shape
(
0
));
}
};
NGRAPH_TEST
(
$
{
BACKEND_NAME
},
unhandled_op
)
...
...
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