-
Notifications
You must be signed in to change notification settings - Fork 5
clip : use smart pointers #21
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
|
Caution Review failedThe pull request is closed. WalkthroughThe pull request refactors the image handling code by introducing C++ wrappers and smart pointer types for clip image objects. New custom deleter structures and unique pointers replace raw pointer usage in several components. The API is updated with new function signatures and getter functions, while the batch processing for images is augmented with initialization and dimension-query functions. Overall, the changes aim to streamline memory management and improve clarity across the code base. Changes
Sequence Diagram(s)sequenceDiagram
participant App as Application
participant Batch as clip_image_f32_batch
participant Pre as clip_image_preprocess
participant Enc as clip_image_batch_encode
App->>Batch: clip_image_f32_batch_init()
App->>Pre: clip_image_preprocess(Batch)
App->>Enc: clip_image_batch_encode(Batch)
Enc-->>App: Encoded data
App->>Batch: Automatic cleanup via smart pointers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Make sure to read the contributing guidelines before submitting a PR
Summary by CodeRabbit
New Features
Refactor
Bug Fixes