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
b0fd261b
Commit
b0fd261b
authored
Oct 16, 2018
by
L.S. Cook
Committed by
Scott Cyphers
Oct 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup grammar on documentation for tensor and backend (#1825)
parent
e9fc89ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
index.rst
doc/sphinx/source/ops/index.rst
+3
-5
backend.hpp
src/ngraph/runtime/backend.hpp
+4
-4
tensor.hpp
src/ngraph/runtime/tensor.hpp
+2
-2
No files found.
doc/sphinx/source/ops/index.rst
View file @
b0fd261b
.. ops/index.rst
Core Ops
========
About
Core Ops
========
======
An ``Op``'s primary role is to function as a node in a directed acyclic graph
dependency computation graph.
...
...
@@ -40,7 +40,7 @@ that must be performed are:
Alphabetical list of Core ``ops``
----------------------------------
=================================
Not currently a comprehensive list.
...
...
@@ -163,5 +163,3 @@ Not currently a comprehensive list.
sqrt.rst
tan.rst
tanh.rst
src/ngraph/runtime/backend.hpp
View file @
b0fd261b
...
...
@@ -54,7 +54,7 @@ public:
/// \brief Create a tensor specific to this backend
/// \param element_type The type of the tensor element
/// \param shape The shape of the tensor
/// \returns shared_ptr to a new backend
specific tensor
/// \returns shared_ptr to a new backend
-
specific tensor
virtual
std
::
shared_ptr
<
ngraph
::
runtime
::
Tensor
>
create_tensor
(
const
ngraph
::
element
::
Type
&
element_type
,
const
Shape
&
shape
)
=
0
;
...
...
@@ -64,7 +64,7 @@ public:
/// \param memory_pointer A pointer to a buffer used for this tensor. The size of the buffer
/// must be sufficient to contain the tensor. The lifetime of the buffer is the
/// responsibility of the caller.
/// \returns shared_ptr to a new backend
specific tensor
/// \returns shared_ptr to a new backend
-
specific tensor
virtual
std
::
shared_ptr
<
ngraph
::
runtime
::
Tensor
>
create_tensor
(
const
ngraph
::
element
::
Type
&
element_type
,
const
Shape
&
shape
,
void
*
memory_pointer
)
=
0
;
...
...
@@ -107,8 +107,8 @@ public:
/// \param func The function to execute
virtual
void
remove_compiled_function
(
std
::
shared_ptr
<
Function
>
func
);
/// \brief Enable the collection of per
op performance information on a specified Function.
/// Data
is collection
via the `get_performance_data` method.
/// \brief Enable the collection of per
-
op performance information on a specified Function.
/// Data
collection is
via the `get_performance_data` method.
/// \param func The function to collect perfomance data on.
/// \param enable Set to true to enable or false to disable data collection
virtual
void
enable_performance_data
(
std
::
shared_ptr
<
Function
>
func
,
bool
enable
)
{}
...
...
src/ngraph/runtime/tensor.hpp
View file @
b0fd261b
...
...
@@ -78,12 +78,12 @@ namespace ngraph
/// \param layout Layout to set
void
set_tensor_layout
(
const
std
::
shared_ptr
<
descriptor
::
layout
::
TensorLayout
>&
layout
);
/// \brief Get the stale value of the tensor. A tensor is stale if it
'
s data is
/// \brief Get the stale value of the tensor. A tensor is stale if its data is
/// changed.
/// \return true if there is new data in this tensor
bool
get_stale
()
const
;
/// \brief Set the stale value of the tensor. A tensor is stale if it
'
s data is
/// \brief Set the stale value of the tensor. A tensor is stale if its data is
/// changed.
void
set_stale
(
bool
val
);
...
...
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