Skip to content

Refactoring and cleaning up fused operators. Change of create_random_…#109

Merged
mseeger merged 2 commits into
mainfrom
refactor_fused2
May 9, 2026
Merged

Refactoring and cleaning up fused operators. Change of create_random_…#109
mseeger merged 2 commits into
mainfrom
refactor_fused2

Conversation

@mseeger
Copy link
Copy Markdown
Contributor

@mseeger mseeger commented May 9, 2026

…index in annotation.py required increase of MAX_DELTA_TRANS_LENGTH

Fast follow of #105.

The (crucial!) change of create_random_index needed some changes:

  • Using topk(...).indices instead of argsort saves time and space
  • Increase MAX_DELTA_TRANS_LENGTH from 32 to 48, since otherwise tests in test_gradient.py fail, due to mismatches

Not sure why this happens, but increasing MAX_DELTA_TRANS_LENGTH anyway makes matching more robust.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…index in annotation.py required increase of MAX_DELTA_TRANS_LENGTH
@mseeger mseeger self-assigned this May 9, 2026
@mseeger mseeger merged commit 9ba89ea into main May 9, 2026
7 checks passed
@mseeger mseeger deleted the refactor_fused2 branch May 9, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant