Skip to content
Snippets Groups Projects
Commit 315282c3 authored by Matt Wala's avatar Matt Wala
Browse files

Relax stride checks in handle_alloc()

parent 1a9cd3b9
No related branches found
No related tags found
No related merge requests found
...@@ -107,7 +107,8 @@ class CExecutionWrapperGenerator(ExecutionWrapperGeneratorBase): ...@@ -107,7 +107,8 @@ class CExecutionWrapperGenerator(ExecutionWrapperGeneratorBase):
#check strides #check strides
if not skip_arg_checks: if not skip_arg_checks:
gen("assert %(strides)s == %(name)s.strides, " gen("assert _lpy_filter_stride(%(name)s.shape, %(strides)s) "
"== _lpy_filter_stride(%(name)s.shape, %(name)s.strides), "
"'Strides of loopy created array %(name)s, " "'Strides of loopy created array %(name)s, "
"do not match expected.'" % "do not match expected.'" %
dict(name=arg.name, dict(name=arg.name,
......
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