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
TransformerEngine
Commits
6f4bc334
Unverified
Commit
6f4bc334
authored
Nov 21, 2025
by
Jack
Committed by
GitHub
Nov 21, 2025
Browse files
Make grad_output contiguous in cross_entropy.py (#2402)
Signed-off-by:
Jack
<
lityangweiguang@163.com
>
parent
15dead11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
transformer_engine/pytorch/triton/cross_entropy.py
transformer_engine/pytorch/triton/cross_entropy.py
+1
-1
No files found.
transformer_engine/pytorch/triton/cross_entropy.py
View file @
6f4bc334
...
@@ -121,7 +121,7 @@ def cross_entropy_backward(
...
@@ -121,7 +121,7 @@ def cross_entropy_backward(
element_mul_kernel
[(
n_rows
,)](
element_mul_kernel
[(
n_rows
,)](
_input
,
_input
,
_input
.
stride
(
-
2
),
_input
.
stride
(
-
2
),
grad_output
,
grad_output
.
contiguous
()
,
1
if
grad_output
.
numel
()
>
1
else
0
,
1
if
grad_output
.
numel
()
>
1
else
0
,
V
,
V
,
BLOCK_SIZE
=
BLOCK_SIZE
,
BLOCK_SIZE
=
BLOCK_SIZE
,
...
...
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