-
Notifications
You must be signed in to change notification settings - Fork 14
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
Concatenating a shape tensor using the *
op does not work with fill
#207
Comments
Possibly related to #206 |
Noting that this works if the product is forced to be evaluated first. This suggests it has to do with the lowering into MLIR. a = tp.Tensor([1, 2, 3])
s = a.shape[-1:]*2
print(s) # removing the print leads to the error above
tp.ones(s) The location of the exception suggests that the incorrect value comes from if input.shape is None:
from tripy.backend.mlir.utils import ShapeContext
# memoize while we're at it
input.shape = ShapeContext().get_shape_of_dynamic_trace_tensor(input)
return input.shape |
Note that no MLIR is dumped by running this example, so I would expect that the error has to do with how the shape context works. I will look further into that. |
Here is some of the MLIR created inside
|
The
*
op is supposed to concatenate a shape tensor to itself. However, if we use the resulting shape tensor with a fill ops, we get a failure:The text was updated successfully, but these errors were encountered: