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
a43caff7
Commit
a43caff7
authored
Nov 23, 2020
by
Jiezhong Qiu
Browse files
update
parent
4f7a182b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pytorch/mem_transformer.py
pytorch/mem_transformer.py
+1
-1
No files found.
pytorch/mem_transformer.py
View file @
a43caff7
...
@@ -98,7 +98,7 @@ class HierarchicalMoEPositionwiseFF(nn.Module):
...
@@ -98,7 +98,7 @@ class HierarchicalMoEPositionwiseFF(nn.Module):
self
.
d_inner
=
d_inner
self
.
d_inner
=
d_inner
self
.
dropout
=
dropout
self
.
dropout
=
dropout
self
.
block_net
=
nn
.
Linear
(
n_block
,
d_inner
)
self
.
block_net
=
nn
.
Linear
(
d_model
,
n_block
)
self
.
W1
=
nn
.
Parameter
(
torch
.
Tensor
(
n_block
,
d_block
,
d_model
))
self
.
W1
=
nn
.
Parameter
(
torch
.
Tensor
(
n_block
,
d_block
,
d_model
))
self
.
b1
=
nn
.
Parameter
(
torch
.
Tensor
(
n_block
,
d_block
))
self
.
b1
=
nn
.
Parameter
(
torch
.
Tensor
(
n_block
,
d_block
))
...
...
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