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
f13257e4
Commit
f13257e4
authored
Jul 11, 2019
by
Robert Kimball
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add comments and new methods if you only want to createe non-pipelined tensors
parent
9b3846f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
7 deletions
+42
-7
executable.cpp
src/ngraph/runtime/executable.cpp
+13
-3
executable.hpp
src/ngraph/runtime/executable.hpp
+29
-4
No files found.
src/ngraph/runtime/executable.cpp
View file @
f13257e4
...
...
@@ -124,14 +124,24 @@ void runtime::Executable::save(std::ostream& output_stream)
throw
runtime_error
(
"save opertion unimplemented."
);
}
vector
<
shared_ptr
<
runtime
::
Tensor
>>
runtime
::
Executable
::
create_input_tensor
(
size_t
input_number
,
shared_ptr
<
runtime
::
Tensor
>
runtime
::
Executable
::
create_input_tensor
(
size_t
input_index
)
{
throw
runtime_error
(
"create_input_tensor unimplemented"
);
}
shared_ptr
<
runtime
::
Tensor
>
runtime
::
Executable
::
create_output_tensor
(
size_t
output_index
)
{
throw
runtime_error
(
"create_output_tensor unimplemented"
);
}
vector
<
shared_ptr
<
runtime
::
Tensor
>>
runtime
::
Executable
::
create_input_tensor
(
size_t
input_index
,
size_t
pipeline_depth
)
{
throw
runtime_error
(
"create_input_tensor unimplemented"
);
}
vector
<
shared_ptr
<
runtime
::
Tensor
>>
runtime
::
Executable
::
create_output_tensor
(
size_t
input_number
,
vector
<
shared_ptr
<
runtime
::
Tensor
>>
runtime
::
Executable
::
create_output_tensor
(
size_t
output_index
,
size_t
pipeline_depth
)
{
throw
runtime_error
(
"create_
in
put_tensor unimplemented"
);
throw
runtime_error
(
"create_
out
put_tensor unimplemented"
);
}
src/ngraph/runtime/executable.hpp
View file @
f13257e4
...
...
@@ -73,10 +73,35 @@ public:
/// Saved stream may be read with Backend::load
virtual
void
save
(
std
::
ostream
&
output_stream
);
virtual
std
::
vector
<
std
::
shared_ptr
<
runtime
::
Tensor
>>
create_input_tensor
(
size_t
input_number
,
size_t
pipeline_depth
=
1
);
virtual
std
::
vector
<
std
::
shared_ptr
<
runtime
::
Tensor
>>
create_output_tensor
(
size_t
input_number
,
size_t
pipeline_depth
=
1
);
/// \brief Create an input Tensor
/// \param input_index The index position in the input Parameter vector. This would be the same
/// order of Parameters passed into the inputs in the call() method.
/// \returns A Tensor
virtual
std
::
shared_ptr
<
runtime
::
Tensor
>
create_input_tensor
(
size_t
input_index
);
/// \brief Create an output Tensor
/// \param output_index The index position in the output Result vector. This would be the same
/// order of Results passed into the outputs in the call() method.
/// \returns A Tensor
virtual
std
::
shared_ptr
<
runtime
::
Tensor
>
create_output_tensor
(
size_t
output_index
);
/// \brief Create a vector of input Tensors
/// \param input_index The index position in the input Parameter vector. This would be the same
/// order of Parameters passed into the inputs in the call() method.
/// \param pipeline_depth The number of stages in the input pipeline. For double-buffered input
/// you would specify pipeline_depth=2
/// \returns A vector of Tensors, one for each stage of the pipeline
virtual
std
::
vector
<
std
::
shared_ptr
<
runtime
::
Tensor
>>
create_input_tensor
(
size_t
input_index
,
size_t
pipeline_depth
);
/// \brief Create a vector of output Tensors
/// \param output_index The index position in the output Result vector. This would be the same
/// order of Results passed into the outputs in the call() method.
/// \param pipeline_depth The number of stages in the output pipeline. For double-buffered output
/// you would specify pipeline_depth=2
/// \returns A vector of Tensors, one for each stage of the pipeline
virtual
std
::
vector
<
std
::
shared_ptr
<
runtime
::
Tensor
>>
create_output_tensor
(
size_t
output_index
,
size_t
pipeline_depth
);
protected
:
/// \brief Called at the end of compile to the values to be returned by get_parameters
...
...
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