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
b4104ebe
Commit
b4104ebe
authored
Aug 30, 2017
by
Scott Cyphers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add concatenate
parent
807ad951
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
69 additions
and
3 deletions
+69
-3
CMakeLists.txt
src/CMakeLists.txt
+1
-0
literal.hpp
src/ngraph/literal.hpp
+1
-2
ngraph.hpp
src/ngraph/ngraph.hpp
+1
-0
op.hpp
src/ngraph/op.hpp
+1
-1
concatenate.hpp
src/ngraph/ops/concatenate.hpp
+35
-0
concatenate.cpp
src/ops/concatenate.cpp
+30
-0
No files found.
src/CMakeLists.txt
View file @
b4104ebe
...
...
@@ -18,6 +18,7 @@ set (SRC
tree.cpp
util.cpp
log.cpp
ops/concatenate.cpp
ops/function.cpp
ops/literal.cpp
ops/op.cpp
...
...
src/ngraph/literal.hpp
View file @
b4104ebe
...
...
@@ -71,4 +71,4 @@ namespace ngraph
using
UInt8ScalarOp
=
ScalarLiteralOp
<
element
::
UInt8
>
;
using
UInt32ScalarOp
=
ScalarLiteralOp
<
element
::
UInt32
>
;
using
UInt64ScalarOp
=
ScalarLiteralOp
<
element
::
UInt64
>
;
}
\ No newline at end of file
}
src/ngraph/ngraph.hpp
View file @
b4104ebe
...
...
@@ -24,6 +24,7 @@
#include "ngraph/literal.hpp"
#include "ngraph/node.hpp"
#include "ngraph/op.hpp"
#include "ngraph/ops/concatenate.hpp"
#include "ngraph/parameter.hpp"
#include "ngraph/shape.hpp"
#include "ngraph/type.hpp"
src/ngraph/op.hpp
View file @
b4104ebe
...
...
@@ -32,7 +32,7 @@ namespace ngraph
//Node::ptr candidate();
Node
::
ptr
ceiling
(
const
Node
::
ptr
&
arg0
,
const
Node
::
ptr
&
arg1
);
//Node::ptr concatenate();
//Node::ptr constant();
//Node::ptr convert();
//Node::ptr convolution();
...
...
src/ngraph/ops/concatenate.hpp
0 → 100644
View file @
b4104ebe
// ----------------------------------------------------------------------------
// Copyright 2017 Nervana Systems Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// ----------------------------------------------------------------------------
#pragma once
namespace
ngraph
{
namespace
op
{
Node
::
ptr
concatenate
(
const
std
::
vector
<
Node
::
ptr
>&
args
);
}
class
ConcatenateOp
:
public
BuiltinOp
{
public
:
ConcatenateOp
(
const
std
::
vector
<
Node
::
ptr
>&
args
)
:
BuiltinOp
(
args
)
{
}
virtual
std
::
string
op_name
()
const
override
{
return
"concatenate"
;
}
virtual
void
propagate_types
()
override
;
};
}
src/ops/concatenate.cpp
0 → 100644
View file @
b4104ebe
// ----------------------------------------------------------------------------
// Copyright 2017 Nervana Systems Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// ----------------------------------------------------------------------------
#include <memory>
#include "ngraph/ngraph.hpp"
using
namespace
std
;
using
namespace
ngraph
;
void
ConcatenateOp
::
propagate_types
()
{
throw
ngraph_error
(
"NIY"
);
}
Node
::
ptr
op
::
concatenate
(
const
std
::
vector
<
Node
::
ptr
>&
args
)
{
return
make_shared
<
ConcatenateOp
>
(
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