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
0bdb051a
Unverified
Commit
0bdb051a
authored
Feb 16, 2019
by
Robert Kimball
Committed by
GitHub
Feb 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename a few tensor view to tensor (#2450)
* rename tensor view to tensor * one more * revert change
parent
2b7e74e5
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
26 additions
and
26 deletions
+26
-26
node.hpp
src/ngraph/node.hpp
+3
-3
all.hpp
src/ngraph/op/all.hpp
+1
-1
any.hpp
src/ngraph/op/any.hpp
+1
-1
max.hpp
src/ngraph/op/max.hpp
+1
-1
min.hpp
src/ngraph/op/min.hpp
+1
-1
parameter.hpp
src/ngraph/op/parameter.hpp
+1
-1
product.hpp
src/ngraph/op/product.hpp
+1
-1
replace_slice.hpp
src/ngraph/op/replace_slice.hpp
+4
-4
reshape.hpp
src/ngraph/op/reshape.hpp
+1
-1
reverse.hpp
src/ngraph/op/reverse.hpp
+1
-1
slice.hpp
src/ngraph/op/slice.hpp
+2
-2
sum.hpp
src/ngraph/op/sum.hpp
+1
-1
cpu_call_frame.cpp
src/ngraph/runtime/cpu/cpu_call_frame.cpp
+2
-2
cpu_external_function.cpp
src/ngraph/runtime/cpu/cpu_external_function.cpp
+2
-2
update_slice.hpp
src/ngraph/runtime/cpu/op/update_slice.hpp
+4
-4
No files found.
src/ngraph/node.hpp
View file @
0bdb051a
...
...
@@ -71,7 +71,7 @@ namespace ngraph
/// Nodes are the backbone of the graph of Value dataflow. Every node has
/// zero or more nodes as arguments and one value, which is either a tensor
///
view
or a (possibly empty) tuple of values.
/// or a (possibly empty) tuple of values.
class
Node
:
public
std
::
enable_shared_from_this
<
Node
>
{
// So Adjoints can call generate_adjoints
...
...
@@ -182,10 +182,10 @@ namespace ngraph
/// Checks that there is exactly one output and returns its tensor.
descriptor
::
Tensor
&
get_output_tensor
()
const
;
/// Returns the tensor
view
of output i
/// Returns the tensor of output i
std
::
shared_ptr
<
descriptor
::
Tensor
>
get_output_tensor_ptr
(
size_t
i
)
const
;
/// Checks that there is exactly one output and returns its tensor
view
.
/// Checks that there is exactly one output and returns its tensor.
std
::
shared_ptr
<
descriptor
::
Tensor
>
get_output_tensor_ptr
()
const
;
/// Returns the set of inputs using output i
...
...
src/ngraph/op/all.hpp
View file @
0bdb051a
...
...
@@ -31,7 +31,7 @@ namespace ngraph
public
:
/// \brief Constructs an "all" reduction operation.
///
/// \param arg The tensor
view
to be reduced.
/// \param arg The tensor to be reduced.
/// \param reduction_axes The axis positions (0-based) to be eliminated.
All
(
const
std
::
shared_ptr
<
Node
>&
arg
,
const
AxisSet
&
reduction_axes
);
...
...
src/ngraph/op/any.hpp
View file @
0bdb051a
...
...
@@ -31,7 +31,7 @@ namespace ngraph
public
:
/// \brief Constructs an "any" reduction operation.
///
/// \param arg The tensor
view
to be reduced.
/// \param arg The tensor to be reduced.
/// \param reduction_axes The axis positions (0-based) to be eliminated.
Any
(
const
std
::
shared_ptr
<
Node
>&
arg
,
const
AxisSet
&
reduction_axes
);
...
...
src/ngraph/op/max.hpp
View file @
0bdb051a
...
...
@@ -28,7 +28,7 @@ namespace ngraph
public
:
/// \brief Constructs a max-reduction operation.
///
/// \param arg The tensor
view
to be reduced.
/// \param arg The tensor to be reduced.
/// \param reduction_axes The axis positions (0-based) to be eliminated.
Max
(
const
std
::
shared_ptr
<
Node
>&
arg
,
const
AxisSet
&
reduction_axes
);
...
...
src/ngraph/op/min.hpp
View file @
0bdb051a
...
...
@@ -28,7 +28,7 @@ namespace ngraph
public
:
/// \brief Constructs a min-reduction operation.
///
/// \param arg The tensor
view
to be reduced.
/// \param arg The tensor to be reduced.
/// \param reduction_axes The axis positions (0-based) to be eliminated.
Min
(
const
std
::
shared_ptr
<
Node
>&
arg
,
const
AxisSet
&
reduction_axes
);
...
...
src/ngraph/op/parameter.hpp
View file @
0bdb051a
...
...
@@ -35,7 +35,7 @@ namespace ngraph
const
NodeVector
&
deltas
)
override
;
public
:
/// \brief Constructions a tensor
view
-typed parameter node.
/// \brief Constructions a tensor-typed parameter node.
///
/// \param element_type The element type of the parameter.
/// \param pshape The partial shape of the parameter.
...
...
src/ngraph/op/product.hpp
View file @
0bdb051a
...
...
@@ -31,7 +31,7 @@ namespace ngraph
public
:
/// \brief Constructs a product reduction operation.
///
/// \param arg The tensor
view
to be reduced.
/// \param arg The tensor to be reduced.
/// \param reduction_axes The axis positions (0-based) to be eliminated.
Product
(
const
std
::
shared_ptr
<
Node
>&
arg
,
const
AxisSet
&
reduction_axes
);
...
...
src/ngraph/op/replace_slice.hpp
View file @
0bdb051a
...
...
@@ -52,8 +52,8 @@ namespace ngraph
public
:
/// \brief Constructs a tensor slice replacement operation.
///
/// \param arg0 The tensor
view
to overwrite into.
/// \param arg1 The tensor
view
to write into `arg0`.
/// \param arg0 The tensor to overwrite into.
/// \param arg1 The tensor to write into `arg0`.
/// \param lower_bounds The axiswise lower bounds of the slice (inclusive).
/// \param upper_bounds The axiswise upper bounds of the slice (exclusive).
/// \param strides The slicing strides; for example, strides of `{n,m}` means to take
...
...
@@ -67,8 +67,8 @@ namespace ngraph
/// \brief Constructs a tensor slice replacement operation with unit strides; i.e., every element inside the bounding box will be overwritten.
///
/// \param arg0 The tensor
view
to overwrite into.
/// \param arg1 The tensor
view
to write into `arg0`.
/// \param arg0 The tensor to overwrite into.
/// \param arg1 The tensor to write into `arg0`.
/// \param lower_bounds The axiswise lower bounds of the slice (inclusive).
/// \param upper_bounds The axiswise upper bounds of the slice (exclusive).
ReplaceSlice
(
const
std
::
shared_ptr
<
Node
>&
arg0
,
...
...
src/ngraph/op/reshape.hpp
View file @
0bdb051a
...
...
@@ -62,7 +62,7 @@ namespace ngraph
public
:
/// \brief Constructs a reshape operation.
///
/// \param arg The tensor
view
to be reshaped.
/// \param arg The tensor to be reshaped.
/// \param input_order The order in which to iterate over input axes. This must be a permutation of the
/// sequence \f$(0,\dots,n-1)\f$ where \f$n\f$ is the rank of the input tensor.
/// \param output_shape The output shape. If the input shape is \f$(a_0,\dots,a_{k-1})\f$ then the output shape must
...
...
src/ngraph/op/reverse.hpp
View file @
0bdb051a
...
...
@@ -48,7 +48,7 @@ namespace ngraph
public
:
/// \brief Constructs a reverse operation.
///
/// \param arg The input tensor
view
, some of whose axes are to be reversed.
/// \param arg The input tensor, some of whose axes are to be reversed.
/// \param reversed_axes The axes to reverse.
Reverse
(
const
std
::
shared_ptr
<
Node
>&
arg
,
const
AxisSet
&
reversed_axes
);
...
...
src/ngraph/op/slice.hpp
View file @
0bdb051a
...
...
@@ -30,7 +30,7 @@ namespace ngraph
public
:
/// \brief Constructs a tensor slice operation.
///
/// \param arg The tensor
view
to be sliced.
/// \param arg The tensor to be sliced.
/// \param lower_bounds The axiswise lower bounds of the slice (inclusive).
/// \param upper_bounds The axiswise upper bounds of the slice (exclusive).
/// \param strides The slicing strides; for example, strides of `{n,m}` means to take
...
...
@@ -42,7 +42,7 @@ namespace ngraph
/// \brief Constructs a tensor slice operation with unit strides; i.e., every element inside the bounding box will be copied to the output slice.
///
/// \param arg The tensor
view
to be sliced.
/// \param arg The tensor to be sliced.
/// \param lower_bounds The axiswise lower bounds of the slice (inclusive).
/// \param upper_bounds The axiswise upper bounds of the slice (exclusive).
Slice
(
const
std
::
shared_ptr
<
Node
>&
arg
,
...
...
src/ngraph/op/sum.hpp
View file @
0bdb051a
...
...
@@ -76,7 +76,7 @@ namespace ngraph
public
:
/// \brief Constructs a summation operation.
///
/// \param arg The tensor
view
to be summed.
/// \param arg The tensor to be summed.
/// \param reduction_axes The axis positions (0-based) to be eliminated.
Sum
(
const
std
::
shared_ptr
<
Node
>&
arg
,
const
AxisSet
&
reduction_axes
);
...
...
src/ngraph/runtime/cpu/cpu_call_frame.cpp
View file @
0bdb051a
...
...
@@ -97,14 +97,14 @@ void runtime::cpu::CPU_CallFrame::propagate_layouts(
if
(
layouts
.
size
()
!=
tvs
.
size
())
{
throw
ngraph_error
(
"Error propagating layouts - tensor
view
and layout descriptor counts do not match"
);
"Error propagating layouts - tensor and layout descriptor counts do not match"
);
}
for
(
size_t
i
=
0
;
i
<
tvs
.
size
();
i
++
)
{
if
(
layouts
[
i
]
==
nullptr
)
{
throw
ngraph_error
(
"Error propagating layouts - layout information missing from tensor
view
"
);
"Error propagating layouts - layout information missing from tensor"
);
}
tvs
[
i
]
->
set_tensor_layout
(
layouts
[
i
]);
}
...
...
src/ngraph/runtime/cpu/cpu_external_function.cpp
View file @
0bdb051a
...
...
@@ -1054,7 +1054,7 @@ using namespace ngraph::runtime;
auto
tv
=
parameter
->
get_output_tensor_ptr
(
i
);
if
(
tv
->
get_tensor_layout
()
==
nullptr
)
{
throw
ngraph_error
(
"layout missing on function parameter's tensor
view
: "
+
throw
ngraph_error
(
"layout missing on function parameter's tensor: "
+
tv
->
get_name
());
}
parameter_layout_descriptors
.
emplace_back
(
...
...
@@ -1568,7 +1568,7 @@ void runtime::cpu::CPU_ExternalFunction::build()
auto
tv
=
parameter
->
get_output_tensor_ptr
(
i
);
if
(
tv
->
get_tensor_layout
()
==
nullptr
)
{
throw
ngraph_error
(
"layout missing on function parameter's tensor
view
: "
+
throw
ngraph_error
(
"layout missing on function parameter's tensor: "
+
tv
->
get_name
());
}
parameter_layout_descriptors
.
emplace_back
(
...
...
src/ngraph/runtime/cpu/op/update_slice.hpp
View file @
0bdb051a
...
...
@@ -52,8 +52,8 @@ namespace ngraph
public
:
/// \brief Constructs a tensor slice update operation.
///
/// \param arg0 The tensor
view
to overwrite into.
/// \param arg1 The tensor
view
to increment into `arg0`.
/// \param arg0 The tensor to overwrite into.
/// \param arg1 The tensor to increment into `arg0`.
/// \param lower_bounds The axiswise lower bounds of the slice (inclusive).
/// \param upper_bounds The axiswise upper bounds of the slice (exclusive).
/// \param strides The slicing strides; for example, strides of `{n,m}` means to take
...
...
@@ -67,8 +67,8 @@ namespace ngraph
/// \brief Constructs a tensor slice replacement operation with unit strides; i.e., every element inside the bounding box will be overwritten.
///
/// \param arg0 The tensor
view
to overwrite into.
/// \param arg1 The tensor
view
to increment into `arg0`.
/// \param arg0 The tensor to overwrite into.
/// \param arg1 The tensor to increment into `arg0`.
/// \param lower_bounds The axiswise lower bounds of the slice (inclusive).
/// \param upper_bounds The axiswise upper bounds of the slice (exclusive).
UpdateSlice
(
const
std
::
shared_ptr
<
Node
>&
arg0
,
...
...
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