Skip to content

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.
@vercel
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