Skip to content

Torch input validation#149

Merged
vbharadwaj-bk merged 37 commits intomainfrom
shape-checking
Jul 9, 2025
Merged

Torch input validation#149
vbharadwaj-bk merged 37 commits intomainfrom
shape-checking

Conversation

@asglover
Copy link
Copy Markdown
Collaborator

@asglover asglover commented Jul 9, 2025

Simplified shape, device, dtype checking in the torch_cpp layer.

Known limitations:

I'm only testing on the forward pass, as there are some guard rails on the backwards pass. In the future, a nice-to-have would be testing the guards on backwards, double-backwards.

Adds pytest-subtests as a dev dependency. I can remove this and go back to "check" but found this gives better diagnostics for which test fails / is better supported.

Austin Glover added 30 commits June 8, 2025 14:18
…ure is un maintained. I can remove in preferred, but it is convenient.
…ing all the different buffers and buffer dimensions easier.
@asglover asglover marked this pull request as ready for review July 9, 2025 04:39
Copy link
Copy Markdown
Member

@vbharadwaj-bk vbharadwaj-bk left a comment

Choose a reason for hiding this comment

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

Cleaned and checked ✅

@vbharadwaj-bk vbharadwaj-bk added the ci-ready Triggers CI checks for a pull request label Jul 9, 2025
@vbharadwaj-bk vbharadwaj-bk changed the title Shape checking Torch input validation Jul 9, 2025
@vbharadwaj-bk vbharadwaj-bk merged commit f76b21e into main Jul 9, 2025
2 checks passed
@vbharadwaj-bk vbharadwaj-bk deleted the shape-checking branch February 26, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-ready Triggers CI checks for a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants