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
OpenDAS
apex
Commits
5c373f70
Commit
5c373f70
authored
Dec 09, 2022
by
hubertlu-tw
Committed by
flyingdown
Apr 23, 2023
Browse files
Fix a bug in fused_dense_cuda on ROCm
parent
2951440a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
csrc/fused_dense.cpp
csrc/fused_dense.cpp
+1
-1
No files found.
csrc/fused_dense.cpp
View file @
5c373f70
...
@@ -62,7 +62,7 @@ std::vector<at::Tensor> linear_bias_backward(at::Tensor input, at::Tensor weight
...
@@ -62,7 +62,7 @@ std::vector<at::Tensor> linear_bias_backward(at::Tensor input, at::Tensor weight
// create output/workspace tensor
// create output/workspace tensor
auto
d_weight
=
at
::
empty
({
out_features
,
in_features
},
input
.
type
());
auto
d_weight
=
at
::
empty
({
out_features
,
in_features
},
input
.
type
());
#if defined(CUBLAS_VERSION) && CUBLAS_VERSION < 11600
#if
(
defined(CUBLAS_VERSION) && CUBLAS_VERSION < 11600
) || __HIP_PLATFORM_HCC__
auto
d_bias
=
d_output
.
view
({
-
1
,
out_features
}).
sum
(
0
,
false
);
auto
d_bias
=
d_output
.
view
({
-
1
,
out_features
}).
sum
(
0
,
false
);
#else
#else
auto
d_bias
=
at
::
empty
({
out_features
},
input
.
type
());
auto
d_bias
=
at
::
empty
({
out_features
},
input
.
type
());
...
...
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