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
8d55382c
Unverified
Commit
8d55382c
authored
Sep 25, 2018
by
Robert Kimball
Committed by
GitHub
Sep 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename metod in descriptor::Tensor (#1678)
parent
000b0b41
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
tensor.cpp
src/ngraph/descriptor/tensor.cpp
+1
-1
tensor.hpp
src/ngraph/descriptor/tensor.hpp
+1
-1
node.cpp
src/ngraph/node.cpp
+1
-1
No files found.
src/ngraph/descriptor/tensor.cpp
View file @
8d55382c
...
@@ -30,7 +30,7 @@ descriptor::Tensor::Tensor(const element::Type& element_type,
...
@@ -30,7 +30,7 @@ descriptor::Tensor::Tensor(const element::Type& element_type,
{
{
}
}
void
descriptor
::
Tensor
::
set_tensor_
view_
type
(
const
element
::
Type
&
element_type
,
const
Shape
&
shape
)
void
descriptor
::
Tensor
::
set_tensor_type
(
const
element
::
Type
&
element_type
,
const
Shape
&
shape
)
{
{
m_shape
=
shape
;
m_shape
=
shape
;
m_element_type
=
element_type
;
m_element_type
=
element_type
;
...
...
src/ngraph/descriptor/tensor.hpp
View file @
8d55382c
...
@@ -44,7 +44,7 @@ namespace ngraph
...
@@ -44,7 +44,7 @@ namespace ngraph
Tensor
(
const
element
::
Type
&
element_type
,
const
Shape
&
shape
,
const
std
::
string
&
name
);
Tensor
(
const
element
::
Type
&
element_type
,
const
Shape
&
shape
,
const
std
::
string
&
name
);
const
std
::
string
&
get_name
()
const
{
return
m_name
;
}
const
std
::
string
&
get_name
()
const
{
return
m_name
;
}
void
set_tensor_
view_
type
(
const
element
::
Type
&
element_type
,
const
Shape
&
shape
);
void
set_tensor_type
(
const
element
::
Type
&
element_type
,
const
Shape
&
shape
);
const
element
::
Type
&
get_element_type
()
const
{
return
m_element_type
;
}
const
element
::
Type
&
get_element_type
()
const
{
return
m_element_type
;
}
const
Shape
&
get_shape
()
const
{
return
m_shape
;
}
const
Shape
&
get_shape
()
const
{
return
m_shape
;
}
...
...
src/ngraph/node.cpp
View file @
8d55382c
...
@@ -86,7 +86,7 @@ void Node::validate_and_infer_types()
...
@@ -86,7 +86,7 @@ void Node::validate_and_infer_types()
void
Node
::
set_output_type
(
size_t
i
,
const
element
::
Type
&
element_type
,
const
Shape
&
shape
)
void
Node
::
set_output_type
(
size_t
i
,
const
element
::
Type
&
element_type
,
const
Shape
&
shape
)
{
{
m_outputs
.
at
(
i
).
get_tensor_ptr
()
->
set_tensor_
view_
type
(
element_type
,
shape
);
m_outputs
.
at
(
i
).
get_tensor_ptr
()
->
set_tensor_type
(
element_type
,
shape
);
}
}
std
::
deque
<
descriptor
::
Output
>&
Node
::
get_outputs
()
std
::
deque
<
descriptor
::
Output
>&
Node
::
get_outputs
()
...
...
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