Skip to content
Snippets Groups Projects
Commit bb587c24 authored by Moritz Ibing's avatar Moritz Ibing
Browse files

bugfix in sequence length check

parent fa8bbbe1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment