You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we lower to an IndexLambda a Reshape expression we output a scalar expression that flattens out the indexing. This is not always necessary. Here is a small example.
One option is to use loopy.simplify_using_aff. Although a bit expensive (and potentially not simplifying in the case of SizeParams), leaves us with a straightforward implementation.
In #455, @a-alveyblanc rewired the reshape logic to establish ranges of axes that are "passed through" unchanged. This should require (hopefully) only a simple fix on top of that. I recall there being a discussion at the time about handling of trailing one-long axes, perhaps this just needs to be added.
When we lower to an
IndexLambda
aReshape
expression we output a scalar expression that flattens out the indexing. This is not always necessary. Here is a small example.Currently, the variable
first_index_expr
will have structure the((0 + _0*1) % 10) // 1
.The text was updated successfully, but these errors were encountered: