Pysyft: Add Functionality to FixedPrecisionTensor

Created on 20 Sep 2018  路  3Comments  路  Source: OpenMined/PySyft

In https://github.com/OpenMined/PySyft/pull/1530 and https://github.com/OpenMined/PySyft/pull/1531, we created a new class called FixedPrecisionTensor which is able to take any pytorch tensor and compute over it using a limited range of precision. For example (https://github.com/OpenMined/PySyft/blob/master/examples/torch/Fixed%20Precision%20Tensor%20Testing.ipynb)

However, only addition has been implemented. In this work, we'd like to add the following functions.

  • __mult__ - multiplication by another fixed precision tensor
  • __mult__ - multiplication by another non-fixed precision tensor
  • prod() - multiplication across a dimension
  • cumprod() - cumulative multiplication across a dimension
  • __add__ - addition by a non-fixed precision tensor
  • sum() - addition across a dimension
  • cumsum() - cumulative addition across a dimension
  • inheritance - all undefined methods should inherit from the tensor underlying FixedPrecisionTensor (self.child). Test that this works using __getitem__
Good first issue Help Wanted Type Type

Most helpful comment

I would like to work on this. I'm just getting started with this project though.

All 3 comments

I would like to work on this. I'm just getting started with this project though.

Please reach out if you get stuck on anything - I'm here to help :)

I got this 馃榿

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MetaT1an picture MetaT1an  路  3Comments

mgale694 picture mgale694  路  3Comments

jvmncs picture jvmncs  路  3Comments

iamtrask picture iamtrask  路  4Comments

gmuraru picture gmuraru  路  4Comments