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
f4d73ee1
"git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "c694a4d63fdaaef5c61134f04f2d2deb6b757163"
Commit
f4d73ee1
authored
Apr 30, 2019
by
Shucai Xiao
Browse files
clang format
parent
55f47962
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/include/migraphx/tensor_view.hpp
src/include/migraphx/tensor_view.hpp
+5
-3
No files found.
src/include/migraphx/tensor_view.hpp
View file @
f4d73ee1
...
@@ -12,12 +12,14 @@
...
@@ -12,12 +12,14 @@
namespace
migraphx
{
namespace
migraphx
{
inline
namespace
MIGRAPHX_INLINE_NS
{
inline
namespace
MIGRAPHX_INLINE_NS
{
template
<
class
T
>
template
<
class
T
>
T
as_number
(
T
x
)
{
return
x
;
}
T
as_number
(
T
x
)
{
return
x
;
}
inline
int32_t
as_number
(
int8_t
x
)
{
return
static_cast
<
int32_t
>
(
x
);
}
inline
int32_t
as_number
(
int8_t
x
)
{
return
static_cast
<
int32_t
>
(
x
);
}
inline
uint32_t
as_number
(
uint8_t
x
)
{
return
static_cast
<
uint8_t
>
(
x
);
}
inline
uint32_t
as_number
(
uint8_t
x
)
{
return
static_cast
<
uint8_t
>
(
x
);
}
template
<
class
T
>
template
<
class
T
>
struct
tensor_view
struct
tensor_view
{
{
...
...
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