We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Warp currently supports defining tuple type hints with int elements but not with other types, so the following will fail:
int
from typing import Tuple import warp as wp @wp.func def foo() -> Tuple[wp.vec3f, float]: return (wp.vec3(), 1.23) @wp.kernel def kernel(): vec, val = foo() wp.launch(kernel, dim=1)
The current workaround is to remove the type hint altogether and let Warp infers it from the code, e.g. this works:
import warp as wp @wp.func def foo(): return (wp.vec3(), 1.23) @wp.kernel def kernel(): vec, val = foo() wp.launch(kernel, dim=1)
No response
The text was updated successfully, but these errors were encountered:
christophercrouzet
No branches or pull requests
Bug Description
Warp currently supports defining tuple type hints with
int
elements but not with other types, so the following will fail:The current workaround is to remove the type hint altogether and let Warp infers it from the code, e.g. this works:
System Information
No response
The text was updated successfully, but these errors were encountered: