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
81a2d933
Commit
81a2d933
authored
5 years ago
by
fenglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve Scott's comment about construction
parent
d3032021
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
4 deletions
+16
-4
recv.cpp
src/ngraph/op/recv.cpp
+3
-1
recv.hpp
src/ngraph/op/recv.hpp
+5
-1
send.cpp
src/ngraph/op/send.cpp
+3
-1
send.hpp
src/ngraph/op/send.hpp
+5
-1
No files found.
src/ngraph/op/recv.cpp
View file @
81a2d933
...
...
@@ -19,8 +19,10 @@
using
namespace
std
;
using
namespace
ngraph
;
const
string
op
::
Recv
::
type_name
{
"Recv"
};
op
::
Recv
::
Recv
(
const
shared_ptr
<
Node
>&
arg
,
int
src_id
)
:
Op
(
"Recv"
,
check_single_output_args
({
arg
}))
:
Op
(
check_single_output_args
({
arg
}))
,
m_src_id
(
src_id
)
{
constructor_validate_and_infer_types
();
...
...
This diff is collapsed.
Click to expand it.
src/ngraph/op/recv.hpp
View file @
81a2d933
...
...
@@ -27,7 +27,11 @@ namespace ngraph
class
Recv
:
public
Op
{
public
:
Recv
(
const
std
::
shared_ptr
<
Node
>&
arg
,
int
src_id
=
0
);
NGRAPH_API
static
const
std
::
string
type_name
;
const
std
::
string
&
description
()
const
override
{
return
type_name
;
}
Recv
(
const
std
::
shared_ptr
<
Node
>&
arg
,
int
src_id
);
void
validate_and_infer_types
()
override
;
...
...
This diff is collapsed.
Click to expand it.
src/ngraph/op/send.cpp
View file @
81a2d933
...
...
@@ -19,8 +19,10 @@
using
namespace
std
;
using
namespace
ngraph
;
const
string
op
::
Send
::
type_name
{
"Send"
};
op
::
Send
::
Send
(
const
shared_ptr
<
Node
>&
arg
,
int
dest_id
)
:
Op
(
"Send"
,
check_single_output_args
({
arg
}))
:
Op
(
check_single_output_args
({
arg
}))
,
m_dest_id
(
dest_id
)
{
constructor_validate_and_infer_types
();
...
...
This diff is collapsed.
Click to expand it.
src/ngraph/op/send.hpp
View file @
81a2d933
...
...
@@ -27,7 +27,11 @@ namespace ngraph
class
Send
:
public
Op
{
public
:
Send
(
const
std
::
shared_ptr
<
Node
>&
arg
,
int
dest_id
=
0
);
NGRAPH_API
static
const
std
::
string
type_name
;
const
std
::
string
&
description
()
const
override
{
return
type_name
;
}
Send
(
const
std
::
shared_ptr
<
Node
>&
arg
,
int
dest_id
);
void
validate_and_infer_types
()
override
;
...
...
This diff is collapsed.
Click to expand it.
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