Pysyft: Implement the Abs function for IntTensor on the GPU

Created on 13 Jan 2018  路  3Comments  路  Source: OpenMined/PySyft

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](http://pytorch.org/docs/master/tensors.html) 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.
Help Wanted Type

All 3 comments

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

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

@xnutsive No worries 馃槃
Thanks @gavinuhma

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akirahirohito picture akirahirohito  路  3Comments

iamtrask picture iamtrask  路  4Comments

MetaT1an picture MetaT1an  路  3Comments

IonesioJunior picture IonesioJunior  路  3Comments

gmuraru picture gmuraru  路  4Comments