Skip to content
Snippets Groups Projects
Commit 7fadc604 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix vector array dimension tagging

parent de1a9c4d
No related branches found
No related tags found
No related merge requests found
......@@ -300,12 +300,12 @@ def convert_computed_to_fixed_dim_tags(name, num_user_axes, num_target_axes,
# unable to normalize without known shape
return None
if not is_integer(shape[i]):
if not is_integer(shape[vector_dim]):
raise TypeError("shape along vector axis %d of array '%s' "
"must be an integer, not an expression"
% (i, name))
"must be an integer, not an expression ('%s')"
% (i, name, shape[vector_dim]))
stride_so_far = shape[i]
stride_so_far = shape[vector_dim]
# FIXME: OpenCL-specific
if stride_so_far == 3:
stride_so_far = 4
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment