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
c293d3a8
Unverified
Commit
c293d3a8
authored
Jun 12, 2025
by
Paweł Gadziński
Committed by
GitHub
Jun 12, 2025
Browse files
[PyTorch] Fix typo in GrouppedLinear (#1867)
typo fix Signed-off-by:
Pawel Gadzinski
<
pgadzinski@nvidia.com
>
parent
0efc7daf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
transformer_engine/pytorch/module/grouped_linear.py
transformer_engine/pytorch/module/grouped_linear.py
+2
-2
No files found.
transformer_engine/pytorch/module/grouped_linear.py
View file @
c293d3a8
...
...
@@ -241,8 +241,8 @@ class _GroupedLinear(torch.autograd.Function):
biases
=
saved_tensors
[
3
*
N
:
4
*
N
]
main_grads
=
ctx
.
main_grads
if
ctx
.
cpu_offloading
and
ctx
.
fuse_wgrad_accumulation
:
# TOSO
for
i
in
ctx
.
num_gemms
:
if
ctx
.
cpu_offloading
and
ctx
.
fuse_wgrad_accumulation
:
for
i
in
range
(
ctx
.
num_gemms
)
:
w
=
torch
.
nn
.
Parameter
(
weights
[
i
],
weights
[
i
].
requires_grad
)
w
.
main_grad
=
main_grads
[
i
]
weights
[
i
]
=
w
...
...
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