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
a138509b
Commit
a138509b
authored
Aug 16, 2017
by
Bob Kimball
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clang-format-3.9 style
parent
22e2307b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
26 additions
and
31 deletions
+26
-31
element_type.hpp
src/element_type.hpp
+0
-0
log.hpp
src/log.hpp
+2
-5
names.cpp
src/names.cpp
+0
-0
names.hpp
src/names.hpp
+0
-0
strides.hpp
src/strides.hpp
+0
-2
axes.cpp
src/transformers/axes.cpp
+2
-2
axes.hpp
src/transformers/axes.hpp
+0
-0
exop.cpp
src/transformers/exop.cpp
+2
-2
exop.hpp
src/transformers/exop.hpp
+0
-0
mock.hpp
src/transformers/mock.hpp
+0
-0
mock_transformer.hpp
src/transformers/mock_transformer.hpp
+9
-12
ndarray.hpp
src/transformers/ndarray.hpp
+1
-1
op_graph.cpp
src/transformers/op_graph.cpp
+4
-2
op_graph.hpp
src/transformers/op_graph.hpp
+0
-0
tree.hpp
src/tree.hpp
+0
-1
util.hpp
src/util.hpp
+0
-1
uuid.hpp
src/uuid.hpp
+0
-1
names.cpp
test/names.cpp
+3
-1
util.cpp
test/util.cpp
+3
-1
No files found.
src/element_type.hpp
View file @
a138509b
src/log.hpp
View file @
a138509b
...
...
@@ -37,7 +37,6 @@ namespace nervana
}
constexpr
const
char
*
get_ptr
(
size_t
offset
)
const
{
return
&
_string
[
offset
];
}
constexpr
size_t
size
()
const
{
return
_size
;
}
private
:
const
char
*
_string
;
size_t
_size
;
...
...
@@ -45,9 +44,8 @@ namespace nervana
constexpr
const
char
*
find_last
(
conststring
s
,
size_t
offset
,
char
ch
)
{
return
offset
==
0
?
s
.
get_ptr
(
0
)
:
(
s
[
offset
]
==
ch
?
s
.
get_ptr
(
offset
+
1
)
:
find_last
(
s
,
offset
-
1
,
ch
));
return
offset
==
0
?
s
.
get_ptr
(
0
)
:
(
s
[
offset
]
==
ch
?
s
.
get_ptr
(
offset
+
1
)
:
find_last
(
s
,
offset
-
1
,
ch
));
}
constexpr
const
char
*
find_last
(
conststring
s
,
char
ch
)
...
...
@@ -69,7 +67,6 @@ namespace nervana
~
log_helper
();
std
::
ostream
&
stream
()
{
return
_stream
;
}
private
:
std
::
stringstream
_stream
;
};
...
...
src/names.cpp
View file @
a138509b
src/names.hpp
View file @
a138509b
src/strides.hpp
View file @
a138509b
...
...
@@ -27,7 +27,6 @@ public:
ElementType
et
=
element_type_float
);
const
ElementType
&
get_type
()
const
{
return
m_element_type
;
}
tensor_stride
full_strides
()
const
;
tensor_stride
strides
()
const
;
tensor_size
sizes
()
const
;
...
...
@@ -53,7 +52,6 @@ class ngraph::tensor_stride
public
:
tensor_stride
();
const
ElementType
&
get_type
()
const
{
return
m_element_type
;
}
tensor_stride
full_strides
()
const
;
tensor_stride
strides
()
const
;
...
...
src/transformers/axes.cpp
View file @
a138509b
...
...
@@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// ----------------------------------------------------------------------------
#include <cassert>
#include <cmath>
#include <iostream>
#include <sstream>
#include <cmath>
#include <cassert>
#include "axes.hpp"
#include "util.hpp"
...
...
src/transformers/axes.hpp
View file @
a138509b
This diff is collapsed.
Click to expand it.
src/transformers/exop.cpp
View file @
a138509b
...
...
@@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// ----------------------------------------------------------------------------
#include <cmath>
#include <exception>
#include <memory>
#include <sstream>
#include <exception>
#include <cmath>
#include "exop.hpp"
#include "op_graph.hpp"
...
...
src/transformers/exop.hpp
View file @
a138509b
This diff is collapsed.
Click to expand it.
src/transformers/mock.hpp
View file @
a138509b
This diff is collapsed.
Click to expand it.
src/transformers/mock_transformer.hpp
View file @
a138509b
...
...
@@ -14,24 +14,21 @@
#pragma once
#include "mock.hpp"
#include "exop.hpp"
#include "mock.hpp"
namespace
ngraph
{
//================================================================================================
// CpuTransformer
//================================================================================================
class
CpuTransformer
:
public
Transformer
{
public
:
//================================================================================================
// CpuTransformer
//================================================================================================
class
CpuTransformer
:
public
Transformer
{
public
:
virtual
~
CpuTransformer
()
{}
ExecutionState
&
execution_state
()
override
{
return
m_execution_state
;
}
private
:
private
:
ExecutionState
m_execution_state
;
};
};
}
// end namespace ngraph
src/transformers/ndarray.hpp
View file @
a138509b
...
...
@@ -14,8 +14,8 @@
#pragma once
#include <vector>
#include <memory>
#include <vector>
#include "element_type.hpp"
#include "strides.hpp"
...
...
src/transformers/op_graph.cpp
View file @
a138509b
...
...
@@ -14,8 +14,8 @@
#include <sstream>
#include "op_graph.hpp"
#include "axes.hpp"
#include "op_graph.hpp"
#include "util.hpp"
using
namespace
ngraph
;
...
...
@@ -2794,7 +2794,9 @@ ElementWiseOp::ElementWiseOp()
{
}
void
ElementWiseOp
::
ElementWiseOp_init
(
std
::
vector
<
op_ptr
>
,
Axes
)
{}
void
ElementWiseOp
::
ElementWiseOp_init
(
std
::
vector
<
op_ptr
>
,
Axes
)
{
}
//================================================================================================
// UnaryElementWiseOp
...
...
src/transformers/op_graph.hpp
View file @
a138509b
This diff is collapsed.
Click to expand it.
src/tree.hpp
View file @
a138509b
...
...
@@ -51,7 +51,6 @@ public:
bool
is_list
()
const
{
return
m_is_list
;
}
T
get_value
()
const
{
return
m_value
;
}
const
std
::
vector
<
tree
>&
get_list
()
const
{
return
m_list
;
}
static
void
traverse_tree
(
tree
&
s
,
std
::
function
<
void
(
T
*
)
>
func
)
{
if
(
s
.
is_list
())
...
...
src/util.hpp
View file @
a138509b
...
...
@@ -148,7 +148,6 @@ namespace ngraph
size_t
get_total_milliseconds
()
const
{
return
get_total_nanoseconds
()
/
1e6
;
}
size_t
get_total_microseconds
()
const
{
return
get_total_nanoseconds
()
/
1e3
;
}
size_t
get_total_nanoseconds
()
const
{
return
m_total_time
.
count
();
}
private
:
std
::
chrono
::
high_resolution_clock
m_clock
;
std
::
chrono
::
time_point
<
std
::
chrono
::
high_resolution_clock
>
m_start_time
;
...
...
src/uuid.hpp
View file @
a138509b
...
...
@@ -74,7 +74,6 @@ public:
}
bool
operator
!=
(
const
uuid_type
&
other
)
const
{
return
!
(
*
this
==
other
);
}
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
uuid_type
&
id
)
{
out
<<
id
.
to_string
();
...
...
test/names.cpp
View file @
a138509b
...
...
@@ -22,4 +22,6 @@
using
namespace
ngraph
;
TEST
(
names
,
name
)
{}
TEST
(
names
,
name
)
{
}
test/util.cpp
View file @
a138509b
...
...
@@ -134,7 +134,9 @@ TEST(util, contains)
EXPECT_FALSE
(
contains
(
v1
,
8
));
}
TEST
(
util
,
remove_from
)
{}
TEST
(
util
,
remove_from
)
{
}
TEST
(
util
,
reduce
)
{
...
...
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