-
Notifications
You must be signed in to change notification settings - Fork 0
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
[HYRID][SYNTAX] tir.allocate #95
Comments
I encounter a problem now The format now is packedB = tir.var("handle")
tir.attr(packedB, "storage_scope", "global")
tir.allocate(packedB, "float32x32", [32768]) After compressing tir.allocate tir.attr(packedB, "storage_scope", "global")
packedB = tir.allocate("float32x32", [32768]) From python's point of view, cc @tqchen |
Can we compress tir.allocate with attr together? As far as I know, every So, it could be
|
I agree in this case we should try to fold the storage scope into the allocate |
@spectrometerHBH can you work a bit to resolve this issue? Thanks! |
Right now Allocate is printed as
After apache/tvm#6317, we want to make sure that allocate actually uses var that has a pointer type annotation(non runtime type) to get richer information, it would be great to enhance hybrid parser to support this case.
A slight generalization might look like
However, it seems to be weird to separate data var declaration. In this case, we can simply do
and in the case of scoping
The text was updated successfully, but these errors were encountered: