PySyft icon indicating copy to clipboard operation
PySyft copied to clipboard

Implement the Abs function for IntTensor on the CPU

Open alberduris opened this issue 8 years ago • 1 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 abs() should be added to our IntTensor class with the appropriate functionality, returning a new tensor.

If you want to take it to the next level, boost it implementing the operation on the GPU: Search for an issue titled like this but with "on the GPU" on the title! HLSL (GPU language) tutorial here: Direct Compute Programming Guide

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

I'll take a look at this

hackjoy avatar Jan 13 '18 13:01 hackjoy