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

Remove no-op line #50

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ReneNyffenegger
Copy link

The removed line is imho unnecessary and can be removed for two reasons:

  1. Float32Array.set takes an array and an optional numeric
    However, in the removed line, these parameters were passed
    in switched order, resulting in a no-op (afaict)

  2. It seems that the idea was to zero the elements in the
    array because the last chunk is smaller than the array size.
    However, the array is already created with its values set
    to 0.

The removed line is imho unnecessary and can be removed for two reasons:

1) Float32Array.set takes an array and an optional numeric
   However, in the removed line, these parameters were passed
   in switched order, resulting in a no-op (afaict)

2) It seems that the idea was to zero the elements in the
   array because the last chunk is smaller than the array size.
   However, the array is already created with its values set
   to 0.
Copy link

vercel bot commented Oct 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web-gpt ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 6, 2024 6:08pm

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