-
-
Notifications
You must be signed in to change notification settings - Fork 49
Make entire public API C-compatible #58
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
Conversation
# Conflicts: # clip.cpp # clip.h # examples/main.c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks ok overall
I think it looks good overall. One thing in my mind is, maybe we can accept |
Either that or provide a function that produces the batch struct given a std::vector. |
Yes, maybe a util function in the |
…ble (#58) * rm __pycache__ * gitignore __pycache__ * gitignore dist * Refactor encoding functions to make normalization optional * Fix pip package #55 * Make entire public API C-compatible (#58) * main.c: remove hardcoded vec_dim * Make all public functions use C-compatible signatures * Move private declarations to clip.cpp * Merge with fix-zsl * Update examples * python: rm redundant bindings to CLIPLayer and models * formatting: apply formatting script * readme: add notices about the new API * zsl: use const auto & * tests: fix benchmark utility * python: bump version * Add constructor-like functions for batched structs --------- Co-authored-by: M. Yusuf Sarıgöz <[email protected]> --------- Co-authored-by: Denis Ismailaj <[email protected]>
No description provided.