Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
a4026def
Commit
a4026def
authored
Nov 05, 2018
by
Shucai Xiao
Browse files
clang format for all changed files.
parent
e1ef1e17
Changes
95
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
54 additions
and
35 deletions
+54
-35
src/include/migraph/raw_data.hpp
src/include/migraph/raw_data.hpp
+3
-2
src/include/migraph/reflect.hpp
src/include/migraph/reflect.hpp
+3
-2
src/include/migraph/requires.hpp
src/include/migraph/requires.hpp
+3
-2
src/include/migraph/shape.hpp
src/include/migraph/shape.hpp
+3
-2
src/include/migraph/shape_for_each.hpp
src/include/migraph/shape_for_each.hpp
+3
-2
src/include/migraph/simplify_algebra.hpp
src/include/migraph/simplify_algebra.hpp
+3
-2
src/include/migraph/simplify_reshapes.hpp
src/include/migraph/simplify_reshapes.hpp
+3
-2
src/include/migraph/streamutils.hpp
src/include/migraph/streamutils.hpp
+3
-2
src/include/migraph/stringutils.hpp
src/include/migraph/stringutils.hpp
+3
-2
src/include/migraph/target.hpp
src/include/migraph/target.hpp
+2
-1
src/include/migraph/tensor_view.hpp
src/include/migraph/tensor_view.hpp
+3
-2
src/include/migraph/time.hpp
src/include/migraph/time.hpp
+3
-2
src/include/migraph/tracer.hpp
src/include/migraph/tracer.hpp
+3
-2
src/include/migraph/type_name.hpp
src/include/migraph/type_name.hpp
+3
-2
src/include/migraph/type_traits.hpp
src/include/migraph/type_traits.hpp
+2
-1
src/include/migraph/verify.hpp
src/include/migraph/verify.hpp
+3
-2
src/include/migraph/verify_args.hpp
src/include/migraph/verify_args.hpp
+3
-2
src/instruction.cpp
src/instruction.cpp
+2
-1
src/onnx/onnx.cpp
src/onnx/onnx.cpp
+1
-1
src/opt/common_header.hpp
src/opt/common_header.hpp
+2
-1
No files found.
src/include/migraph/raw_data.hpp
View file @
a4026def
...
...
@@ -6,7 +6,8 @@
#include <migraph/requires.hpp>
#include <migraph/config.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
struct
raw_data_base
{
...
...
@@ -204,7 +205,7 @@ auto visit_all(T&& x, Ts&&... xs)
};
}
}
//
inline
namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
#endif
src/include/migraph/reflect.hpp
View file @
a4026def
...
...
@@ -6,7 +6,8 @@
#include <migraph/config.hpp>
#include <functional>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
detail
{
...
...
@@ -46,7 +47,7 @@ void reflect_each(T& x, F f)
});
}
}
//
inline
namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
#endif
src/include/migraph/requires.hpp
View file @
a4026def
...
...
@@ -4,7 +4,8 @@
#include <type_traits>
#include <migraph/config.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
template
<
bool
...
Bs
>
struct
and_
:
std
::
is_same
<
and_
<
Bs
...
>
,
and_
<
(
Bs
||
true
)...
>>
// NOLINT
...
...
@@ -45,7 +46,7 @@ struct requires_enum
#endif
#endif
}
//
inline
namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
#endif
src/include/migraph/shape.hpp
View file @
a4026def
...
...
@@ -11,7 +11,8 @@
#include <migraph/half.hpp>
#include <migraph/config.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
struct
shape_impl
;
...
...
@@ -162,7 +163,7 @@ struct shape
std
::
string
type_string
()
const
;
};
}
//
inline
namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
#endif
src/include/migraph/shape_for_each.hpp
View file @
a4026def
...
...
@@ -5,7 +5,8 @@
#include <migraph/config.hpp>
#include <algorithm>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
template
<
class
F
>
void
shape_for_each
(
const
migraph
::
shape
&
s
,
F
f
)
...
...
@@ -27,7 +28,7 @@ void shape_for_each(const migraph::shape& s, F f)
}
}
}
//
inline
namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
#endif
src/include/migraph/simplify_algebra.hpp
View file @
a4026def
...
...
@@ -4,7 +4,8 @@
#include <string>
#include <migraph/config.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
struct
program
;
...
...
@@ -14,7 +15,7 @@ struct simplify_algebra
void
apply
(
program
&
p
)
const
;
};
}
//
inline
namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
#endif
src/include/migraph/simplify_reshapes.hpp
View file @
a4026def
...
...
@@ -5,7 +5,8 @@
#include <migraph/instruction_ref.hpp>
#include <migraph/config.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
struct
program
;
...
...
@@ -15,7 +16,7 @@ struct simplify_reshapes
void
apply
(
program
&
p
)
const
;
};
}
//
inline
namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
#endif
src/include/migraph/streamutils.hpp
View file @
a4026def
...
...
@@ -6,7 +6,8 @@
#include <migraph/rank.hpp>
#include <migraph/config.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
template
<
class
T
>
struct
stream_range_container
...
...
@@ -55,7 +56,7 @@ void stream_write_value(std::ostream& os, const T& x)
detail
::
stream_write_value_impl
(
rank
<
1
>
{},
os
,
x
);
}
}
//
inline
namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
#endif
src/include/migraph/stringutils.hpp
View file @
a4026def
...
...
@@ -7,7 +7,8 @@
#include <sstream>
#include <migraph/config.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
std
::
string
replace_string
(
std
::
string
subject
,
const
std
::
string
&
search
,
const
std
::
string
&
replace
)
...
...
@@ -86,7 +87,7 @@ inline std::string to_string(const T& x)
return
ss
.
str
();
}
}
//
inline
namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
#endif
src/include/migraph/target.hpp
View file @
a4026def
...
...
@@ -12,7 +12,8 @@
#include <migraph/pass.hpp>
#include <migraph/config.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
#ifdef DOXYGEN
...
...
src/include/migraph/tensor_view.hpp
View file @
a4026def
...
...
@@ -9,7 +9,8 @@
#include <iostream>
#include <utility>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
template
<
class
T
>
struct
tensor_view
...
...
@@ -168,7 +169,7 @@ tensor_view<T> make_view(shape s, T* data)
return
{
s
,
data
};
}
}
//
inline
namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
#endif
src/include/migraph/time.hpp
View file @
a4026def
...
...
@@ -4,7 +4,8 @@
#include <chrono>
#include <migraph/config.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
template
<
class
Duration
,
class
F
>
auto
time
(
F
f
)
...
...
@@ -15,7 +16,7 @@ auto time(F f)
return
std
::
chrono
::
duration_cast
<
Duration
>
(
finish
-
start
).
count
();
}
}
//
inline
namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
#endif
src/include/migraph/tracer.hpp
View file @
a4026def
...
...
@@ -5,7 +5,8 @@
#include <migraph/functional.hpp>
#include <migraph/config.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
struct
tracer
{
...
...
@@ -29,7 +30,7 @@ struct tracer
std
::
ostream
*
os
=
nullptr
;
};
}
//
inline
namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
#endif
src/include/migraph/type_name.hpp
View file @
a4026def
...
...
@@ -4,7 +4,8 @@
#include <string>
#include <migraph/config.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
template
<
class
PrivateMigraphTypeNameProbe
>
const
std
::
string
&
get_type_name
()
...
...
@@ -40,7 +41,7 @@ const std::string& get_type_name(const T&)
return
migraph
::
get_type_name
<
T
>
();
}
}
//
inline
namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
#endif
src/include/migraph/type_traits.hpp
View file @
a4026def
...
...
@@ -12,7 +12,8 @@
#include <migraph/half.hpp>
#include <migraph/config.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
#define MIGRAPH_DETAIL_EXTEND_TRAIT_FOR(trait, T) \
template <class X> \
...
...
src/include/migraph/verify.hpp
View file @
a4026def
...
...
@@ -10,7 +10,8 @@
#include <migraph/float_equal.hpp>
#include <migraph/config.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
// Compute the value of a range
template
<
class
R
>
...
...
@@ -172,6 +173,6 @@ bool verify_range(R1&& r1, R2&& r2, double tolerance = 80, double* out_error = n
return
error
<=
threshold
;
}
}
//
inline
namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
#endif
src/include/migraph/verify_args.hpp
View file @
a4026def
...
...
@@ -5,7 +5,8 @@
#include <migraph/argument.hpp>
#include <migraph/config.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
bool
verify_args
(
const
std
::
string
&
name
,
const
argument
&
cpu_arg
,
...
...
@@ -83,7 +84,7 @@ inline bool verify_args(const std::string& name,
return
passed
;
}
}
//
inline
namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
#endif
src/instruction.cpp
View file @
a4026def
...
...
@@ -2,7 +2,8 @@
#include <migraph/builtin.hpp>
#include <migraph/erase.hpp>
namespace
migraph
{
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
namespace
MIGRAPH_INLINE_NS
{
instruction
::
instruction
(
operation
o
,
shape
r
,
std
::
vector
<
instruction_ref
>
args
)
:
op
(
std
::
move
(
o
)),
result
(
std
::
move
(
r
)),
arguments
(
std
::
move
(
args
))
...
...
src/onnx/onnx.cpp
View file @
a4026def
...
...
@@ -16,7 +16,7 @@
#include <migraph/instruction.hpp>
#include <migraph/config.hpp>
namespace
migraph
{
namespace
migraph
{
namespace
MIGRAPH_INLINE_NS
{
struct
unknown
{
...
...
src/opt/common_header.hpp
View file @
a4026def
...
...
@@ -13,7 +13,8 @@
#include <vector>
#include <queue>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
//#define MIGRAPH_DEBUG_OPT
...
...
Prev
1
2
3
4
5
Next
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