Skip to content

Validate random crop sizes per dimension - #149

Open
sylvesterkaczmarek wants to merge 1 commit into
google-deepmind:masterfrom
sylvesterkaczmarek:fix/random-crop-dimension-validation
Open

sylvesterkaczmarek wants to merge 1 commit into
google-deepmind:masterfrom
sylvesterkaczmarek:fix/random-crop-dimension-validation

Conversation

@sylvesterkaczmarek

Copy link
Copy Markdown
Contributor

Fixes #148.

Check crop rank and each dimension explicitly. Oversized later dimensions and negative sizes now raise ValueError before entering JAX.

Five regression cases fail on unchanged master; six focused tests pass, including a JIT control.

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.

random_crop checks crop dimensions lexicographically

1 participant