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

Fixed LLamaTokenDataArrayNative.Create's size initialization #981

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

Lyrcaxis
Copy link
Contributor

This PR fixes an initialization issue of LLamaTokenDataNativeArray's _size property, which is initialized at 0
image
but when .Create() is called, it attempts to set _size to some value that HAS to be larger than 0,
image
..which triggers this exception:
image

@martindevans
Copy link
Member

Thanks

@martindevans martindevans merged commit 45afacc into SciSharp:master Nov 13, 2024
6 checks passed
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.

2 participants