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
8156e3e0
Commit
8156e3e0
authored
Sep 22, 2017
by
Yixing Lao
Committed by
Avijit
Sep 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
operator overloading as a free function (#142)
parent
332c4833
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
tensor.cpp
src/ngraph/descriptor/tensor.cpp
+4
-4
tensor.hpp
src/ngraph/descriptor/tensor.hpp
+2
-2
No files found.
src/ngraph/descriptor/tensor.cpp
View file @
8156e3e0
...
...
@@ -20,9 +20,9 @@ using namespace ngraph;
using
namespace
ngraph
::
descriptor
;
Tensor
::
Tensor
(
const
element
::
Type
&
element_type
,
PrimaryTensorView
*
primary_tensor_view
,
const
Node
*
parent
,
size_t
value_index
)
PrimaryTensorView
*
primary_tensor_view
,
const
Node
*
parent
,
size_t
value_index
)
:
m_element_type
(
element_type
)
,
m_primary_tensor_view
(
primary_tensor_view
)
,
m_is_output
{
parent
->
is_output
()}
...
...
@@ -59,7 +59,7 @@ size_t Tensor::get_pool_offset() const
return
m_pool_offset
;
}
std
::
ostream
&
descriptor
::
operator
<<
(
std
::
ostream
&
out
,
const
Tensor
&
tensor
)
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
Tensor
&
tensor
)
{
out
<<
"Tensor("
<<
tensor
.
get_name
()
<<
")"
;
return
out
;
...
...
src/ngraph/descriptor/tensor.hpp
View file @
8156e3e0
...
...
@@ -59,8 +59,6 @@ public:
void
set_pool_offset
(
size_t
);
size_t
get_pool_offset
()
const
;
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
,
const
Tensor
&
);
protected
:
const
element
::
Type
&
m_element_type
;
PrimaryTensorView
*
m_primary_tensor_view
;
...
...
@@ -72,3 +70,5 @@ protected:
size_t
m_size
;
size_t
m_pool_offset
;
};
std
::
ostream
&
operator
<<
(
std
::
ostream
&
,
const
ngraph
::
descriptor
::
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