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

Added conditional compilation code to progress_callback (in LlamaModelParams struct) #593

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

clovisribeiro
Copy link
Contributor

The NET framework 4.8 marshaller does not accept the LlamaProgressCallback delegate used in the LlamaModelParams struct, so a conditional compilation was added to use IntPtr instead of LlamaProgressCallback when targeting NET Standard 2.0 (and not NET 6.0 or greater) which essentially means running on NET Framework for us.

…lParams struct) so the struct plays nice with legacy NET Framework 4.8
@martindevans
Copy link
Member

Thanks!

@martindevans martindevans merged commit d0f7981 into SciSharp:master Mar 11, 2024
3 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.

None yet

2 participants