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

Differences between cgraph->leafs and cgraph->nodes? #5791

Closed
VincentXWD opened this issue Feb 29, 2024 · 3 comments
Closed

Differences between cgraph->leafs and cgraph->nodes? #5791

VincentXWD opened this issue Feb 29, 2024 · 3 comments
Labels
enhancement New feature or request stale

Comments

@VincentXWD
Copy link

Hello, I'm wondering what the differences between cgraph->leafs and cgraph->nodes. Thank you very much.

@VincentXWD VincentXWD added the enhancement New feature or request label Feb 29, 2024
@ggerganov
Copy link
Owner

Leaf nodes are the same as other nodes, except they are not a result from an operation. I.e. they are inputs to the graph - constants.

In hindsight it might have been an unnecessary categorization and we might decide to remove the concept of "leafs" in the future

@VincentXWD
Copy link
Author

Thanks for replying. I agree with this view.

Another quick question: How does ggml manage the temporary tensors generated by each node?

@github-actions github-actions bot added the stale label Apr 1, 2024
Copy link
Contributor

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

2 participants