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
b527258d
Commit
b527258d
authored
Aug 25, 2017
by
Scott Cyphers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change to std::string
parent
257cb67c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
16 deletions
+8
-16
function.hpp
src/ngraph/function.hpp
+2
-6
node.hpp
src/ngraph/node.hpp
+2
-2
op.hpp
src/ngraph/op.hpp
+4
-8
No files found.
src/ngraph/function.hpp
View file @
b527258d
...
...
@@ -33,11 +33,7 @@ namespace ngraph
Parameter
(
Function
&
function
,
size_t
index
);
const
std
::
string
&
description
()
const
override
{
static
std
::
string
name
{
"Parameter"
};
return
name
;
}
std
::
string
description
()
const
override
{
return
"Parameter"
;
}
protected
:
Function
&
m_function
;
...
...
@@ -72,7 +68,7 @@ namespace ngraph
Parameter
::
ptr
parameter
(
size_t
i
)
{
return
m_parameters
[
i
];
}
const
std
::
string
&
name
()
const
override
{
return
m_name
;
}
std
::
string
name
()
const
override
{
return
m_name
;
}
protected
:
std
::
vector
<
Parameter
::
ptr
>
m_parameters
;
...
...
src/ngraph/node.hpp
View file @
b527258d
...
...
@@ -50,7 +50,7 @@ namespace ngraph
public
:
/// A "one-liner" describing this node.
virtual
const
std
::
string
&
description
()
const
=
0
;
virtual
std
::
string
description
()
const
=
0
;
/// Propagate types and check arguments for consistency
// virtual void propagate_types() = 0;
...
...
@@ -61,7 +61,7 @@ namespace ngraph
const
std
::
multiset
<
Node
*>
users
()
const
{
return
m_users
;
}
std
::
multiset
<
Node
*>
users
()
{
return
m_users
;
}
const
std
::
string
&
name
()
const
{
return
m_name
;
}
std
::
string
name
()
const
{
return
m_name
;
}
void
name
(
const
std
::
string
&
name
)
{
m_name
=
name
;
}
protected
:
...
...
src/ngraph/op.hpp
View file @
b527258d
...
...
@@ -30,7 +30,7 @@ namespace ngraph
virtual
~
Op
()
{}
public
:
virtual
const
std
::
string
&
name
()
const
=
0
;
virtual
std
::
string
name
()
const
=
0
;
};
/**
...
...
@@ -49,7 +49,7 @@ namespace ngraph
{
}
const
std
::
string
&
description
()
const
override
{
return
m_op
->
name
();
}
virtual
std
::
string
description
()
const
override
{
return
m_op
->
name
();
}
protected
:
std
::
shared_ptr
<
Op
>
m_op
;
...
...
@@ -69,7 +69,7 @@ namespace ngraph
}
public
:
const
std
::
string
&
name
()
const
override
{
return
m_name
;
}
std
::
string
name
()
const
override
{
return
m_name
;
}
protected
:
std
::
string
m_name
;
...
...
@@ -78,11 +78,7 @@ namespace ngraph
class
BuiltinCall
:
public
Call
{
public
:
const
std
::
string
&
description
()
const
override
{
static
std
::
string
name
{
"BuiltinCall "
};
return
name
;
}
virtual
std
::
string
description
()
const
override
{
return
"BuiltinCall"
;
}
protected
:
BuiltinCall
(
const
std
::
shared_ptr
<
Op
>&
op
,
const
std
::
vector
<
Node
::
ptr
>&
args
)
...
...
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