Skip to content

ggml : fix assert in ggml_set_unary_op - #2410

Merged
slaren merged 1 commit into
masterfrom
ggml-fix-set-unary
Jul 26, 2023
Merged

slaren merged 1 commit into
masterfrom
ggml-fix-set-unary

Conversation

@slaren

@slaren slaren commented Jul 26, 2023 •

Copy link
Copy Markdown
Member

The assert in ggml_set_unary_op was an assignment instead of a comparison. Changing it to a comparison wouldn't be enough either, because at the time this function is called, the op still isn't set.

There could be several ways to fix this, I chose to remove ggml_set_unary_op entirely because I don't think we will ever need to use this function outside ggml_unary_impl, and it breaks the pattern of the way that op_params is set in other ops.

@slaren
slaren merged commit b5472ea into master Jul 26, 2023
@slaren
slaren deleted the ggml-fix-set-unary branch July 26, 2023 21:57
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
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