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
af73a4b2
Commit
af73a4b2
authored
May 18, 2019
by
Robert Kimball
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
8b123ada
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
executable.hpp
src/ngraph/runtime/executable.hpp
+19
-0
tensor.hpp
src/ngraph/runtime/tensor.hpp
+0
-2
No files found.
src/ngraph/runtime/executable.hpp
View file @
af73a4b2
...
...
@@ -93,6 +93,25 @@ protected:
bool
begin_execute_helper
(
const
std
::
vector
<
std
::
shared_ptr
<
runtime
::
Tensor
>>&
outputs
,
const
std
::
vector
<
std
::
shared_ptr
<
runtime
::
Tensor
>>&
inputs
);
class
ReadWriteInfo
{
public
:
ReadWriteInfo
(
void
*
p
,
size_t
size
,
bool
is_read
)
:
m_data
{
p
}
,
m_size_in_bytes
{
size
}
,
m_is_read
{
is_read
}
{
}
bool
is_read
()
const
{
return
m_is_read
;
}
bool
is_write
()
const
{
return
!
is_read
();
}
void
*
get_ptr
()
const
{
return
m_data
;
}
bool
get_size_in_bytes
()
const
{
return
m_size_in_bytes
;
}
private
:
void
*
m_data
;
size_t
m_size_in_bytes
;
bool
m_is_read
;
};
private
:
ngraph
::
ParameterVector
m_parameters
;
ngraph
::
ResultVector
m_results
;
...
...
src/ngraph/runtime/tensor.hpp
View file @
af73a4b2
...
...
@@ -131,7 +131,5 @@ namespace ngraph
bool
m_stale
;
std
::
promise
<
void
>
m_promise
;
};
using
TensorViewPtrs
=
std
::
vector
<
std
::
shared_ptr
<
Tensor
>>
;
}
}
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