Skip to content

Conversation

@rtzam
Copy link
Contributor

@rtzam rtzam commented Aug 27, 2025

This fixes #8785

@rtzam rtzam requested a review from alexreinking August 27, 2025 19:06
@alexreinking
Copy link
Member

@abadams - do you know any reason this wasn't already exposed on the Halide::Buffer type?

@abadams
Copy link
Member

abadams commented Aug 27, 2025

I can't think of one that applies to cropped but doesn't apply to other methods like sliced or embedded. It looks like they were just added piecemeal.

@rtzam
Copy link
Contributor Author

rtzam commented Aug 27, 2025

I just noticed that translated is in the same situation as cropped I'll add another commit resolving that one as well

Copy link
Member

@alexreinking alexreinking left a comment

Choose a reason for hiding this comment

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

Can you add a test case for translated too?

@rtzam rtzam force-pushed the rtzam/add-cropped-to-buffer branch from 002b65b to 633972a Compare August 29, 2025 20:39
@rtzam
Copy link
Contributor Author

rtzam commented Aug 29, 2025

@alexreinking, just added the test (and rebased from main)

@rtzam rtzam merged commit 9f2caf0 into main Sep 2, 2025
16 of 19 checks passed
@rtzam rtzam deleted the rtzam/add-cropped-to-buffer branch September 2, 2025 13:34
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.

class Buffer is missing the .cropped() method in Bindings

4 participants