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
FastMoE
Commits
9f7cbd15
Commit
9f7cbd15
authored
Apr 30, 2022
by
zms1999
Browse files
fix type mismatch
parent
0edd811d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fmoe/fastermoe/schedule.py
fmoe/fastermoe/schedule.py
+1
-1
No files found.
fmoe/fastermoe/schedule.py
View file @
9f7cbd15
...
@@ -35,7 +35,7 @@ class MoEForward(Function):
...
@@ -35,7 +35,7 @@ class MoEForward(Function):
x
.
requires_grad
=
True
x
.
requires_grad
=
True
# To skip torch autograd's version check.
# To skip torch autograd's version check.
with
torch
.
autograd
.
graph
.
saved_tensors_hooks
(
nothing
,
nothing
):
with
torch
.
autograd
.
graph
.
saved_tensors_hooks
(
nothing
,
nothing
):
y0
=
expert_fn
(
x
,
[
x
.
shape
[
0
]]
)
y0
=
expert_fn
(
x
,
torch
.
tensor
([
x
.
shape
[
0
]],
dtype
=
torch
.
int64
)
)
ctx
.
gibs
[
idx
]
=
x
ctx
.
gibs
[
idx
]
=
x
ctx
.
gobs
[
idx
]
=
y0
ctx
.
gobs
[
idx
]
=
y0
y
.
copy_
(
y0
)
y
.
copy_
(
y0
)
...
...
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