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
d693075f
Commit
d693075f
authored
Nov 30, 2017
by
Adam Procter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Review comments
parent
1024924b
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
29 additions
and
14 deletions
+29
-14
coordinate_iterator.cpp
src/ngraph/coordinate_iterator.cpp
+14
-4
convert.hpp
src/ngraph/runtime/kernel/convert.hpp
+1
-1
equal.hpp
src/ngraph/runtime/kernel/equal.hpp
+4
-2
greater.hpp
src/ngraph/runtime/kernel/greater.hpp
+1
-1
greater_eq.hpp
src/ngraph/runtime/kernel/greater_eq.hpp
+1
-1
less.hpp
src/ngraph/runtime/kernel/less.hpp
+4
-1
less_eq.hpp
src/ngraph/runtime/kernel/less_eq.hpp
+1
-1
not.hpp
src/ngraph/runtime/kernel/not.hpp
+1
-1
not_equal.hpp
src/ngraph/runtime/kernel/not_equal.hpp
+1
-1
select.hpp
src/ngraph/runtime/kernel/select.hpp
+1
-1
No files found.
src/ngraph/coordinate_iterator.cpp
View file @
d693075f
...
...
@@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// ----------------------------------------------------------------------------
#include <cassert>
#include <cstdio>
#include <iostream>
#include <vector>
...
...
@@ -33,9 +32,20 @@ CoordinateIterator::CoordinateIterator(const Shape& space_shape,
,
m_window_inner_corner
(
window_inner_corner
)
,
m_current_coordinate
(
window_inner_corner
)
{
assert
(
space_shape
.
size
()
==
window_inner_corner
.
size
());
assert
(
space_shape
.
size
()
==
window_outer_corner
.
size
());
assert
(
space_shape
.
size
()
==
strides
.
size
());
if
(
space_shape
.
size
()
!=
window_inner_corner
.
size
())
{
throw
ngraph_error
(
"Coordinate iterator inner corner rank does not make space shape rank"
);
}
if
(
space_shape
.
size
()
!=
window_outer_corner
.
size
())
{
throw
ngraph_error
(
"Coordinate iterator outer corner rank does not make space shape rank"
);
}
if
(
space_shape
.
size
()
!=
strides
.
size
())
{
throw
ngraph_error
(
"Coordinate iterator stride rank does not make space shape rank"
);
}
for
(
size_t
i
=
0
;
i
<
space_shape
.
size
();
i
++
)
{
...
...
src/ngraph/runtime/kernel/convert.hpp
View file @
d693075f
...
...
@@ -25,7 +25,7 @@ namespace ngraph
{
for
(
size_t
i
=
0
;
i
<
count
;
i
++
)
{
out
[
i
]
=
TO
(
arg
[
i
]);
out
[
i
]
=
static_cast
<
TO
>
(
arg
[
i
]);
}
}
}
...
...
src/ngraph/runtime/kernel/equal.hpp
View file @
d693075f
...
...
@@ -24,8 +24,10 @@ namespace ngraph
namespace
kernel
{
template
<
typename
T
>
void
equal
(
T
*
arg0
,
T
*
arg1
,
char
*
out
,
size_t
count
)
// FIXME: temporarily char not bool
void
equal
(
T
*
arg0
,
T
*
arg1
,
char
*
out
,
size_t
count
)
// TODO: using char for bool, is this right?
{
for
(
size_t
i
=
0
;
i
<
count
;
i
++
)
{
...
...
src/ngraph/runtime/kernel/greater.hpp
View file @
d693075f
...
...
@@ -24,7 +24,7 @@ namespace ngraph
void
greater
(
T
*
arg0
,
T
*
arg1
,
char
*
out
,
size_t
count
)
//
FIXME: temporarily char not bool
size_t
count
)
//
TODO: using char for bool, is this right?
{
for
(
size_t
i
=
0
;
i
<
count
;
i
++
)
{
...
...
src/ngraph/runtime/kernel/greater_eq.hpp
View file @
d693075f
...
...
@@ -24,7 +24,7 @@ namespace ngraph
void
greater_eq
(
T
*
arg0
,
T
*
arg1
,
char
*
out
,
size_t
count
)
//
FIXME: temporarily char not bool
size_t
count
)
//
TODO: using char for bool, is this right?
{
for
(
size_t
i
=
0
;
i
<
count
;
i
++
)
{
...
...
src/ngraph/runtime/kernel/less.hpp
View file @
d693075f
...
...
@@ -21,7 +21,10 @@ namespace ngraph
namespace
kernel
{
template
<
typename
T
>
void
less
(
T
*
arg0
,
T
*
arg1
,
char
*
out
,
size_t
count
)
// FIXME: temporarily char not bool
void
less
(
T
*
arg0
,
T
*
arg1
,
char
*
out
,
size_t
count
)
// TODO: using char for bool, is this right?
{
for
(
size_t
i
=
0
;
i
<
count
;
i
++
)
{
...
...
src/ngraph/runtime/kernel/less_eq.hpp
View file @
d693075f
...
...
@@ -24,7 +24,7 @@ namespace ngraph
void
less_eq
(
T
*
arg0
,
T
*
arg1
,
char
*
out
,
size_t
count
)
//
FIXME: temporarily char not bool
size_t
count
)
//
TODO: using char for bool, is this right?
{
for
(
size_t
i
=
0
;
i
<
count
;
i
++
)
{
...
...
src/ngraph/runtime/kernel/not.hpp
View file @
d693075f
...
...
@@ -22,7 +22,7 @@ namespace ngraph
{
void
logical_not
(
char
*
arg
,
char
*
out
,
size_t
count
)
//
FIXME: temporararily char not bool
size_t
count
)
//
TODO: using char for bool, is this right?
{
for
(
size_t
i
=
0
;
i
<
count
;
i
++
)
{
...
...
src/ngraph/runtime/kernel/not_equal.hpp
View file @
d693075f
...
...
@@ -27,7 +27,7 @@ namespace ngraph
void
not_equal
(
T
*
arg0
,
T
*
arg1
,
char
*
out
,
size_t
count
)
//
FIXME: temporarily char not bool
size_t
count
)
//
TODO: using char for bool, is this right?
{
for
(
size_t
i
=
0
;
i
<
count
;
i
++
)
{
...
...
src/ngraph/runtime/kernel/select.hpp
View file @
d693075f
...
...
@@ -25,7 +25,7 @@ namespace ngraph
T
*
arg1
,
T
*
arg2
,
T
*
out
,
size_t
count
)
//
FIXME: temporararily char not bool
size_t
count
)
//
TODO: using char for bool, is this right?
{
for
(
size_t
i
=
0
;
i
<
count
;
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