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
14436c81
Commit
14436c81
authored
Aug 24, 2017
by
Scott Cyphers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0 -> nullptr, non-std shared_ptr::make_shared -> std::make_shared
parent
c302ab30
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
node.hpp
src/ngraph/node.hpp
+1
-1
op.hpp
src/ngraph/op.hpp
+2
-2
type.hpp
src/ngraph/type.hpp
+2
-2
function.cpp
src/ops/function.cpp
+1
-1
No files found.
src/ngraph/node.hpp
View file @
14436c81
...
...
@@ -27,7 +27,7 @@ namespace ngraph
public
:
using
ptr
=
std
::
shared_ptr
<
Node
>
;
Node
(
const
std
::
vector
<
Node
::
ptr
>&
arguments
,
ValueType
::
ptr
type
=
0
)
Node
(
const
std
::
vector
<
Node
::
ptr
>&
arguments
,
ValueType
::
ptr
type
=
nullptr
)
:
TypedValueMixin
(
type
)
,
m_arguments
(
arguments
)
{
...
...
src/ngraph/op.hpp
View file @
14436c81
...
...
@@ -36,7 +36,7 @@ namespace ngraph
Op
::
ptr
op
()
const
{
return
m_op
;
}
Call
(
const
Op
::
ptr
&
op
,
const
std
::
vector
<
Node
::
ptr
>&
arguments
)
:
Node
(
arguments
,
0
)
:
Node
(
arguments
,
nullptr
)
,
m_op
(
op
)
{
}
...
...
@@ -89,7 +89,7 @@ namespace ngraph
public
:
Call
::
ptr
operator
()(
const
Node
::
ptr
&
arg0
,
const
Node
::
ptr
&
arg1
)
{
return
Call
::
ptr
::
make_shared
(
shared_from_this
(),
std
::
vector
<
Node
::
ptr
>
{
arg0
,
arg1
});
return
std
::
make_shared
<
Call
>
(
shared_from_this
(),
std
::
vector
<
Node
::
ptr
>
{
arg0
,
arg1
});
}
};
...
...
src/ngraph/type.hpp
View file @
14436c81
...
...
@@ -99,7 +99,7 @@ namespace ngraph
class
TypedValueMixin
{
public
:
TypedValueMixin
(
const
ValueType
::
ptr
&
type
=
0
)
TypedValueMixin
(
const
ValueType
::
ptr
&
type
=
nullptr
)
:
m_type
(
type
)
{
}
...
...
@@ -117,7 +117,7 @@ namespace ngraph
**/
void
type
(
const
ElementType
&
element_type
,
const
Shape
&
shape
)
{
m_type
=
TensorViewType
::
ptr
::
make_shared
(
element_type
,
shape
);
m_type
=
std
::
make_shared
<
TensorViewType
>
(
element_type
,
shape
);
}
/**
...
...
src/ops/function.cpp
View file @
14436c81
...
...
@@ -29,6 +29,6 @@ Function::Function(size_t n_parameters)
{
for
(
int
i
=
0
;
i
<
n_parameters
;
i
++
)
{
m_parameters
[
i
]
=
Parameter
::
ptr
::
make_shared
(
*
this
,
i
);
m_parameters
[
i
]
=
std
::
make_shared
<
Parameter
>
(
*
this
,
i
);
}
}
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