Skip to content

Conversation

@kohr-h
Copy link
Member

@kohr-h kohr-h commented May 26, 2017

The added check that out is returned captured this bug (albeit somewhat late since there were no tests).

@kohr-h kohr-h force-pushed the fix_reduction_inplace branch from 534a2cd to cb78e5b Compare May 26, 2017 09:10
Copy link
Member

@adler-j adler-j left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. Some minor stuff and then go.

>>> op([[1.0, 2.0, 3.0],
... [4.0, 6.0, 8.0]])
rn(3).element([9.0, 14.0, 19.0])
>>> out = op.range.element()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are going to add a oop example, then make it independent, i.e. add a separate title "In place evaulation also works" or something like that

else:
wrapped_out = self.prod_op.range.element([out], cast=False)
return self.prod_op(x, out=wrapped_out)
result = self.prod_op(x, out=wrapped_out)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pspace_result perhaps?

@adler-j
Copy link
Member

adler-j commented Jun 6, 2017

Could you try to get this out of the way?

@kohr-h kohr-h force-pushed the fix_reduction_inplace branch from b6d0841 to ba1ab94 Compare June 6, 2017 07:30
@kohr-h
Copy link
Member Author

kohr-h commented Jun 6, 2017

Fixed and rebased, will merge when CI goes green.

@kohr-h kohr-h merged commit d61f0c9 into odlgroup:master Jun 6, 2017
@kohr-h kohr-h deleted the fix_reduction_inplace branch June 6, 2017 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants