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

Fix Metal API validation errors #1607

Closed
wants to merge 1 commit into from

Conversation

finnvoor
Copy link
Contributor

@finnvoor finnvoor commented Dec 8, 2023

The Metal API validator doesn't like setting nil for a buffer and throws error failed assertion Compute Function(kernel_soft_max_4): missing buffer binding at index 1 for src1[0].

Only setting non-nil buffers fixes the error, even though the binding is still "missing"

@ggerganov
Copy link
Owner

I fixed this in 7bc4d22

Currently, only the softmax kernel requires optional src1 argument - all other should never be nil.

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