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
91478c00
Unverified
Commit
91478c00
authored
Apr 07, 2020
by
Scott Cyphers
Committed by
GitHub
Apr 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use OutputVector in passthrough (#4523)
* Use OutputVector in passthrough * More Passtrhough
parent
412f5f7b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
24 deletions
+4
-24
passthrough.cpp
python/pyngraph/ops/passthrough.cpp
+1
-1
passthrough.cpp
src/ngraph/op/passthrough.cpp
+1
-16
passthrough.hpp
src/ngraph/op/passthrough.hpp
+1
-6
serialize.cpp
test/serialize.cpp
+1
-1
No files found.
python/pyngraph/ops/passthrough.cpp
View file @
91478c00
...
...
@@ -30,6 +30,6 @@ void regclass_pyngraph_op_Passthrough(py::module m)
pass
.
def
(
py
::
init
<
const
std
::
string
&
,
const
std
::
string
&
,
const
std
::
string
&
,
const
std
::
vector
<
std
::
shared_ptr
<
ngraph
::
Node
>>&
,
const
std
::
vector
<
ngraph
::
Output
<
ngraph
::
Node
>>&
,
std
::
vector
<
std
::
tuple
<
ngraph
::
element
::
Type
,
ngraph
::
PartialShape
>>>
());
}
src/ngraph/op/passthrough.cpp
View file @
91478c00
...
...
@@ -23,21 +23,6 @@ using namespace ngraph;
constexpr
NodeTypeInfo
op
::
Passthrough
::
type_info
;
ngraph
::
op
::
Passthrough
::
Passthrough
(
const
std
::
string
&
logical_type
,
const
std
::
string
&
language
,
const
std
::
string
&
function
,
const
NodeVector
&
args
,
std
::
vector
<
std
::
tuple
<
element
::
Type
,
PartialShape
>>
outputs
)
:
Op
{
args
}
,
m_logical_type
{
logical_type
}
,
m_language
{
language
}
,
m_function
{
function
}
,
m_output_shapes
{
std
::
move
(
outputs
)}
{
set_output_size
(
m_output_shapes
.
size
());
constructor_validate_and_infer_types
();
}
ngraph
::
op
::
Passthrough
::
Passthrough
(
const
std
::
string
&
logical_type
,
const
std
::
string
&
language
,
const
std
::
string
&
function
,
...
...
@@ -77,7 +62,7 @@ void ngraph::op::Passthrough::validate_and_infer_types()
}
std
::
shared_ptr
<
ngraph
::
Node
>
ngraph
::
op
::
Passthrough
::
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
ngraph
::
op
::
Passthrough
::
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
{
if
(
new_args
.
size
()
!=
get_input_size
())
{
...
...
src/ngraph/op/passthrough.hpp
View file @
91478c00
...
...
@@ -45,11 +45,6 @@ public:
static
constexpr
NodeTypeInfo
type_info
{
"Passthrough"
,
0
};
const
NodeTypeInfo
&
get_type_info
()
const
override
{
return
type_info
;
}
Passthrough
()
=
default
;
Passthrough
(
const
std
::
string
&
logical_type
,
// aka "What this operation is doing"
const
std
::
string
&
language
,
// The language the implementation is written in
const
std
::
string
&
function
,
// The operation implementation
const
NodeVector
&
args
,
std
::
vector
<
std
::
tuple
<
element
::
Type
,
PartialShape
>>
outputs
);
Passthrough
(
const
std
::
string
&
logical_type
,
// aka "What this operation is doing"
const
std
::
string
&
language
,
// The language the implementation is written in
...
...
@@ -59,7 +54,7 @@ public:
void
validate_and_infer_types
()
final
;
std
::
shared_ptr
<
Node
>
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
final
;
std
::
shared_ptr
<
Node
>
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
final
;
const
std
::
string
&
logical_type
()
const
{
return
m_logical_type
;
}
const
std
::
string
&
language
()
const
{
return
m_language
;
}
...
...
test/serialize.cpp
View file @
91478c00
...
...
@@ -230,7 +230,7 @@ TEST(serialize, passthrough)
"SerializationTest"
,
"Plain"
,
"Hello, world!"
,
Node
Vector
{},
Output
Vector
{},
std
::
vector
<
estuple
>
{
estuple
{
element
::
f32
,
PartialShape
{
2
,
3
}},
estuple
{
element
::
i8
,
PartialShape
{
4
,
5
}}});
auto
f
=
make_shared
<
Function
>
(
NodeVector
{
std
::
make_shared
<
op
::
GetOutputElement
>
(
p
,
0
),
...
...
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