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
8133026f
"vscode:/vscode.git/clone" did not exist on "c43c30c01b8a99005e1f235eb9e61d81f4f603b5"
Commit
8133026f
authored
Nov 17, 2021
by
Jing Zhang
Browse files
fixed host_convolution_forward for ushort
parent
55159365
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
host/driver_offline/src/conv_fwd_driver_offline.cpp
host/driver_offline/src/conv_fwd_driver_offline.cpp
+3
-3
host/driver_offline/src/gemm_driver_offline.cpp
host/driver_offline/src/gemm_driver_offline.cpp
+1
-5
No files found.
host/driver_offline/src/conv_fwd_driver_offline.cpp
View file @
8133026f
...
@@ -97,7 +97,7 @@ void host_convolution_forward(const Tensor<TIn>& in,
...
@@ -97,7 +97,7 @@ void host_convolution_forward(const Tensor<TIn>& in,
if
constexpr
(
is_same
<
TOut
,
ushort
>::
value
)
if
constexpr
(
is_same
<
TOut
,
ushort
>::
value
)
{
{
out
(
n
,
k
,
ho
,
wo
)
=
type_convert
<
ushort
>
(
v
);
out
(
n
,
k
,
ho
,
wo
)
=
ck
::
type_convert
<
ushort
>
(
static_cast
<
float
>
(
v
)
);
}
}
else
else
{
{
...
@@ -134,7 +134,7 @@ void host_convolution_forward(const Tensor<TIn>& in,
...
@@ -134,7 +134,7 @@ void host_convolution_forward(const Tensor<TIn>& in,
}
}
if
constexpr
(
is_same
<
TOut
,
ushort
>::
value
)
if
constexpr
(
is_same
<
TOut
,
ushort
>::
value
)
{
{
out
(
n
,
ho
,
wo
,
k
)
=
ck
::
type_convert
<
ushort
>
(
v
);
out
(
n
,
ho
,
wo
,
k
)
=
ck
::
type_convert
<
ushort
>
(
static_cast
<
float
>
(
v
)
);
}
}
else
else
{
{
...
@@ -257,7 +257,7 @@ int main(int argc, char* argv[])
...
@@ -257,7 +257,7 @@ int main(int argc, char* argv[])
using in_data_t = float;
using in_data_t = float;
using acc_data_t = float;
using acc_data_t = float;
using out_data_t = float;
using out_data_t = float;
#elif
0
#elif
1
using
in_data_t
=
half_t
;
using
in_data_t
=
half_t
;
using
acc_data_t
=
float
;
using
acc_data_t
=
float
;
using
out_data_t
=
half_t
;
using
out_data_t
=
half_t
;
...
...
host/driver_offline/src/gemm_driver_offline.cpp
View file @
8133026f
...
@@ -239,14 +239,10 @@ int main(int argc, char* argv[])
...
@@ -239,14 +239,10 @@ int main(int argc, char* argv[])
using ab_data_t = float;
using ab_data_t = float;
using acc_data_t = float;
using acc_data_t = float;
using c_data_t = float;
using c_data_t = float;
#elif
0
#elif
1
using
ab_data_t
=
half_t
;
using
ab_data_t
=
half_t
;
using
acc_data_t
=
float
;
using
acc_data_t
=
float
;
using
c_data_t
=
half_t
;
using
c_data_t
=
half_t
;
#elif 1
using
ab_data_t
=
ushort
;
using
acc_data_t
=
float
;
using
c_data_t
=
ushort
;
#elif 1
#elif 1
using
ab_data_t
=
int8_t
;
using
ab_data_t
=
int8_t
;
using
acc_data_t
=
int32_t
;
using
acc_data_t
=
int32_t
;
...
...
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