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
f62f31e6
Unverified
Commit
f62f31e6
authored
Aug 09, 2019
by
Scott Cyphers
Committed by
GitHub
Aug 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parameter attribute setters (#3421)
parent
14624c03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
parameter.cpp
src/ngraph/op/parameter.cpp
+1
-2
parameter.hpp
src/ngraph/op/parameter.hpp
+14
-0
No files found.
src/ngraph/op/parameter.cpp
View file @
f62f31e6
...
...
@@ -26,8 +26,7 @@ const string op::Parameter::type_name{"Parameter"};
op
::
Parameter
::
Parameter
(
const
element
::
Type
&
element_type
,
const
PartialShape
&
pshape
,
const
bool
cacheable
)
:
Op
(
NodeVector
{})
,
m_cacheable
(
cacheable
)
:
m_cacheable
(
cacheable
)
,
m_partial_shape
(
pshape
)
,
m_element_type
(
element_type
)
,
m_is_relevant_to_shapes
(
false
)
...
...
src/ngraph/op/parameter.hpp
View file @
f62f31e6
...
...
@@ -38,6 +38,7 @@ namespace ngraph
NGRAPH_API
static
const
std
::
string
type_name
;
const
std
::
string
&
description
()
const
override
{
return
type_name
;
}
/// \brief Constructions a tensor-typed parameter node.
Parameter
()
=
default
;
/// \brief Constructions a tensor-typed parameter node.
///
...
...
@@ -57,6 +58,19 @@ namespace ngraph
bool
is_relevant_to_shapes
()
const
;
void
set_is_relevant_to_shapes
(
bool
is_relevant
);
const
PartialShape
&
get_partial_shape
()
const
{
return
m_partial_shape
;
}
PartialShape
&
get_partial_shape
()
{
return
m_partial_shape
;
}
void
set_partial_shape
(
const
PartialShape
&
partial_shape
)
{
m_partial_shape
=
partial_shape
;
}
const
element
::
Type
&
get_element_type
()
const
{
return
m_element_type
;
}
void
set_element_type
(
const
element
::
Type
&
element_type
)
{
m_element_type
=
element_type
;
}
protected
:
bool
m_cacheable
;
PartialShape
m_partial_shape
;
...
...
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