mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-19 05:54:20 +00:00
Bug fix
This commit is contained in:
parent
cdfa388ac0
commit
f6c7392430
@ -875,7 +875,7 @@ class LearnedDownsamplingModule(nn.Module):
|
||||
if random.random() < 0.01 or __name__ == '__main__':
|
||||
logging.info(f"mean weight={weights.mean()}, mean-abs-scores={scores.abs().mean()} positive-scores={(scores>0).to(torch.float32).mean()}, discarded-weights={weights_discarded.mean()}, seq_len={seq_len}, seq_len_reduced={seq_len_reduced}")
|
||||
|
||||
weights_discarded = weights_discarded.flip(dims=1)
|
||||
weights_discarded = weights_discarded.flip(dims=(1,))
|
||||
|
||||
weights = (weights[:, :seq_len_reduced] - weights_discarded)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user