Skip to content

Conversation

@scotts
Copy link
Contributor

@scotts scotts commented Jun 4, 2025

Since we're using these values in a constant ref context anyway, we should pass them that way. In practice, this probably won't make much of a performance difference even if the samples are large since I believe tensors are already basically smart pointers. But it's good code hygiene.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 4, 2025
@scotts scotts marked this pull request as ready for review June 4, 2025 19:51
@NicolasHug NicolasHug merged commit d49d72c into meta-pytorch:main Jun 5, 2025
45 of 47 checks passed
@scotts scotts deleted the encoder_const_ref branch June 23, 2025 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants