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
chenpangpang
transformers
Commits
9e0fd780
"tests/vscode:/vscode.git/clone" did not exist on "aade711d1ee225036be22a90bdd1f04eb1c0ba36"
Unverified
Commit
9e0fd780
authored
Sep 23, 2021
by
Gunjan Chhablani
Committed by
GitHub
Sep 22, 2021
Browse files
Fix reference to tpu short seq length (#13686)
parent
6dc41d9f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/fnet/modeling_fnet.py
src/transformers/models/fnet/modeling_fnet.py
+1
-1
No files found.
src/transformers/models/fnet/modeling_fnet.py
View file @
9e0fd780
...
@@ -174,7 +174,7 @@ class FNetBasicFourierTransform(nn.Module):
...
@@ -174,7 +174,7 @@ class FNetBasicFourierTransform(nn.Module):
"dft_mat_hidden"
,
torch
.
tensor
(
linalg
.
dft
(
config
.
hidden_size
),
dtype
=
torch
.
complex64
)
"dft_mat_hidden"
,
torch
.
tensor
(
linalg
.
dft
(
config
.
hidden_size
),
dtype
=
torch
.
complex64
)
)
)
self
.
register_buffer
(
self
.
register_buffer
(
"dft_mat_seq"
,
torch
.
tensor
(
linalg
.
dft
(
config
.
tpu_short_seq
uence
_length
),
dtype
=
torch
.
complex64
)
"dft_mat_seq"
,
torch
.
tensor
(
linalg
.
dft
(
config
.
tpu_short_seq_length
),
dtype
=
torch
.
complex64
)
)
)
self
.
fourier_transform
=
partial
(
self
.
fourier_transform
=
partial
(
two_dim_matmul
,
matrix_dim_one
=
self
.
dft_mat_seq
,
matrix_dim_two
=
self
.
dft_mat_hidden
two_dim_matmul
,
matrix_dim_one
=
self
.
dft_mat_seq
,
matrix_dim_two
=
self
.
dft_mat_hidden
...
...
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