Pysyft: Implement cumprod Functionality in FloatTensor with CPU/GPU Backend Support

Created on 23 Nov 2017  路  2Comments  路  Source: OpenMined/PySyft

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

Furthermore, the function should automatically determine which backend to use (CPU/GPU) based on where the data is located. If the data is located on the CPU, a performant CPU implementation should run but if the data for a given FloatTensor is located on a GPU, it should be run using an HLSL kernel where appropriate. Obviously, if no GPU is available, it should automatically fall back to the CPU implementation.

Every Reference You Might Need for this Issue:

Acceptance Criteria:

  • [ ] an integration test in PySyft demonstrating the correct CPU and GPU operation implemented over a FloatTensor 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.
Help Wanted

Most helpful comment

@iamtrask I just joined OpenMined and am looking for a first contribution on the Deep Learning portion of the architecture. Would love to work on this!

All 2 comments

@iamtrask I just joined OpenMined and am looking for a first contribution on the Deep Learning portion of the architecture. Would love to work on this!

All you @anishpdalal !!! Go for it!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

deevashwer picture deevashwer  路  4Comments

IonesioJunior picture IonesioJunior  路  3Comments

aristizabal95 picture aristizabal95  路  3Comments

jvmncs picture jvmncs  路  3Comments

samsontmr picture samsontmr  路  3Comments