Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Shape Transformer RWKV
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolay Strohschen
Shape Transformer RWKV
Commits
bb587c24
Commit
bb587c24
authored
3 years ago
by
Moritz Ibing
Browse files
Options
Downloads
Patches
Plain Diff
bugfix in sequence length check
parent
fa8bbbe1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
data/transform/check_sequence_length_transform.py
+1
-1
1 addition, 1 deletion
data/transform/check_sequence_length_transform.py
with
1 addition
and
1 deletion
data/transform/check_sequence_length_transform.py
+
1
−
1
View file @
bb587c24
...
...
@@ -67,7 +67,7 @@ class CheckSequenceLenghtTransform():
for
i
in
range
(
min
(
len
(
self
.
substitution_level
),
max_depth
)):
sub_diff
=
self
.
substitution_level
[
i
]
conv_fac
=
self
.
convolution_factor
[
i
]
dep_level
=
i
+
1
-
sub_diff
dep_level
=
i
+
1
if
sub_diff
==
0
:
num_vectors
=
torch
.
sum
(
torch
.
from_numpy
(
dep
)
==
dep_level
)
//
conv_fac
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment