Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allocate output from pool in Gather, NonZero ops #168

Merged
merged 1 commit into from
May 12, 2024
Merged

Conversation

robertknight
Copy link
Owner

  • Fix oversight where Gather op did not allocate from the pool in its fast path
  • Make NonZero op allocate from the pool for its output. This operator is still not fully using the pool as it first builds up a Vec of all the non-zero entries, which it then transposes and copies into a contiguous tensor. Only the final copy is using the pool.

@robertknight robertknight merged commit bcb888a into main May 12, 2024
2 checks passed
@robertknight robertknight deleted the nonzero-pool branch May 12, 2024 09:01
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