Skip to content

Replace one_hot with scatter_ in convert_ids_to_logits() speedup#211

Merged
ATATC merged 2 commits into
ProjectNeura:mainfrom
perctrix:204-scatter-one-hot
Feb 18, 2026
Merged

Replace one_hot with scatter_ in convert_ids_to_logits() speedup#211
ATATC merged 2 commits into
ProjectNeura:mainfrom
perctrix:204-scatter-one-hot

Conversation

@perctrix
Copy link
Copy Markdown
Collaborator

No description provided.

@perctrix perctrix added this to the 1.2.x milestone Feb 18, 2026
@perctrix perctrix requested a review from ATATC February 18, 2026 20:32
@perctrix perctrix self-assigned this Feb 18, 2026
@perctrix perctrix added enhancement New feature or request todo New task or assignment labels Feb 18, 2026
@perctrix perctrix linked an issue Feb 18, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@ATATC ATATC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use (ids.shape[0], num_classes, *ids.shape[1:])

@ATATC ATATC merged commit 0becbdb into ProjectNeura:main Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request todo New task or assignment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scatter is potentially faster than one-hot

2 participants