Skip to content
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

Add an assertion layer #183

Open
pranavm-nvidia opened this issue Sep 5, 2024 · 0 comments
Open

Add an assertion layer #183

pranavm-nvidia opened this issue Sep 5, 2024 · 0 comments

Comments

@pranavm-nvidia
Copy link
Collaborator

In cases where we have composite APIs comprised of other APIs, we can have errors from some intermediate operation. In many cases, we can preempt these errors by inserting checks at the beginning, which can potentially allow for better error messages. However, we need to do so at runtime so that we have access to, e.g., runtime shapes. Consequently, we need an assertion layer that we can insert into the compute graph.

We can use this to enhance the tp.stack error messages in cases where the input shapes are not compatible.

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

No branches or pull requests

1 participant