Skip to content

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
Member

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