PySyft icon indicating copy to clipboard operation
PySyft copied to clipboard

Implement the Abs function for IntTensor on the GPU

Open alberduris opened this issue 8 years ago • 3 comments

As a Data Scientist using PySyft's IntTensor type, I want to leverage a wide range of methods which use our new Unity backend. For this ticket to be complete, the GPU implementation of abs() should be added to our IntTensor class with the appropriate functionality, returning a new tensor.

Note, it is possible that when you look in the code you'll find that parts of this issue were completed on the backend while implementing another issue. This is normal as features do not live in isolation. If this is the case, just take it as a convenience that someone already built that part and press on!

Every Reference You Might Need for this Issue:

Acceptance Criteria:

  • [ ] comment below that you're picking up this project
  • [ ] an example in a notebook in our tests folder showing how to use the functionality from PySyft
  • [ ] an integration test in PySyft demonstrating the correct CPU operation implemented over an IntTensor while connected to a Unity backend
  • [ ] a Unit Test in OpenMined/OpenMined demonstrating the correct operation on a FloatTensor
  • [ ] inline documentation in the python code. For inspiration on inline documentation, please check out PyTorch's documentation for this operator.
  • [ ] Link your Pull Request back to this Issue so that it gets closed appropriately when the PR is merged.

alberduris avatar Jan 13 '18 01:01 alberduris

@hackjoy It looks like I accidentally got too furious and duplicated your work — feel free to pick the best solution, I'll tweak cpu implementation if that'd be required.

natikgadzhi avatar Jan 14 '18 00:01 natikgadzhi

@xnutsive @hackjoy oops. just had this happen with neg too :) I'll try to merge both

gavinuhma avatar Jan 14 '18 18:01 gavinuhma

@xnutsive No worries 😄 Thanks @gavinuhma

hackjoy avatar Jan 15 '18 09:01 hackjoy