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
composable_kernel
Commits
515b4c8d
"vscode:/vscode.git/clone" did not exist on "eafab6bf31b733ba4a644e765f2bbf85dce5cd2b"
Commit
515b4c8d
authored
Sep 14, 2022
by
Po-Yen, Chen
Browse files
Remove useless static_assert()
parent
5a19b884
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
library/include/ck/library/utility/host_tensor.hpp
library/include/ck/library/utility/host_tensor.hpp
+0
-4
No files found.
library/include/ck/library/utility/host_tensor.hpp
View file @
515b4c8d
...
@@ -451,8 +451,6 @@ struct Tensor
...
@@ -451,8 +451,6 @@ struct Tensor
constexpr
std
::
size_t
FromSize
=
sizeof
(
T
);
constexpr
std
::
size_t
FromSize
=
sizeof
(
T
);
constexpr
std
::
size_t
ToSize
=
sizeof
(
U
);
constexpr
std
::
size_t
ToSize
=
sizeof
(
U
);
static_assert
((
ToSize
<
FromSize
?
(
FromSize
%
ToSize
==
0
)
:
(
ToSize
%
FromSize
==
0
)));
using
Element
=
std
::
add_const_t
<
std
::
remove_reference_t
<
U
>>
;
using
Element
=
std
::
add_const_t
<
std
::
remove_reference_t
<
U
>>
;
return
ck
::
span
<
Element
>
{
reinterpret_cast
<
Element
*>
(
data
()),
size
()
*
FromSize
/
ToSize
};
return
ck
::
span
<
Element
>
{
reinterpret_cast
<
Element
*>
(
data
()),
size
()
*
FromSize
/
ToSize
};
}
}
...
@@ -463,8 +461,6 @@ struct Tensor
...
@@ -463,8 +461,6 @@ struct Tensor
constexpr
std
::
size_t
FromSize
=
sizeof
(
T
);
constexpr
std
::
size_t
FromSize
=
sizeof
(
T
);
constexpr
std
::
size_t
ToSize
=
sizeof
(
U
);
constexpr
std
::
size_t
ToSize
=
sizeof
(
U
);
static_assert
((
ToSize
<
FromSize
?
(
FromSize
%
ToSize
==
0
)
:
(
ToSize
%
FromSize
==
0
)));
using
Element
=
std
::
remove_reference_t
<
U
>
;
using
Element
=
std
::
remove_reference_t
<
U
>
;
return
ck
::
span
<
Element
>
{
reinterpret_cast
<
Element
*>
(
data
()),
size
()
*
FromSize
/
ToSize
};
return
ck
::
span
<
Element
>
{
reinterpret_cast
<
Element
*>
(
data
()),
size
()
*
FromSize
/
ToSize
};
}
}
...
...
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