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
8ba7eb9e
Commit
8ba7eb9e
authored
Jul 09, 2019
by
Robert Kimball
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new methods throw exception if not implemented
parent
a7f59336
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
36 deletions
+2
-36
executable.cpp
src/ngraph/runtime/executable.cpp
+2
-36
No files found.
src/ngraph/runtime/executable.cpp
View file @
8ba7eb9e
...
...
@@ -127,45 +127,11 @@ void runtime::Executable::save(std::ostream& output_stream)
vector
<
shared_ptr
<
runtime
::
Tensor
>>
runtime
::
Executable
::
create_input_tensor
(
size_t
input_number
,
size_t
pipeline_depth
)
{
vector
<
shared_ptr
<
runtime
::
Tensor
>>
tensors
;
// if (m_backend)
// {
// const ParameterVector& parameters = get_parameters();
// if (index >= parameters.size())
// {
// throw runtime_error("create_tensor for input out of bounds");
// }
// shared_ptr<op::Parameter> parameter = parameters[index];
// tensor = m_backend->create_tensor(
// parameter->get_element_type(), parameter->get_shape(), memory_pointer);
// tensor->m_source_node = parameter;
// }
// else
// {
// throw runtime_error("Backend does not support Executable::create_tensor");
// }
return
tensors
;
throw
runtime_error
(
"create_input_tensor unimplemented"
);
}
vector
<
shared_ptr
<
runtime
::
Tensor
>>
runtime
::
Executable
::
create_output_tensor
(
size_t
input_number
,
size_t
pipeline_depth
)
{
vector
<
shared_ptr
<
runtime
::
Tensor
>>
tensors
;
// if (m_backend)
// {
// const ResultVector& results = get_results();
// if (index >= results.size())
// {
// throw runtime_error("create_tensor for input out of bounds");
// }
// shared_ptr<op::Result> result = results[index];
// tensor = m_backend->create_tensor(
// result->get_element_type(), result->get_shape(), memory_pointer);
// tensor->m_source_node = result;
// }
// else
// {
// throw runtime_error("Backend does not support Executable::create_tensor");
// }
return
tensors
;
throw
runtime_error
(
"create_input_tensor unimplemented"
);
}
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