Skip to content

Conversation

ggerganov
Copy link
Member

It is commonly needed, especially in graph_compute backend implementations, to filter ops that are "empty", such as view, reshapes, etc. This patch declares a common function in ggml.h to be reused.

@github-actions github-actions bot added ggml changes relating to the ggml tensor library for machine learning Apple Metal https://en.wikipedia.org/wiki/Metal_(API) labels Sep 20, 2025
Copy link
Member

@slaren slaren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer if the definition was in a header so that it can be inlined.

@ggerganov
Copy link
Member Author

Moved to ggml-impl.h - there won't be a public API for now.

@ggerganov ggerganov merged commit a71ae3b into master Sep 22, 2025
54 of 55 checks passed
@ggerganov ggerganov deleted the gg/ggml-op-is-empty branch September 22, 2025 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apple Metal https://en.wikipedia.org/wiki/Metal_(API) ggml changes relating to the ggml tensor library for machine learning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants