diff --git a/syft/tensor.py b/syft/tensor.py
index c1aa0e310e..859dd0ff4f 100644
--- a/syft/tensor.py
+++ b/syft/tensor.py
@@ -858,6 +858,19 @@ class TensorBase(object):
         else:
             return self.data.size
 
+    def cumprod(self, dim=0):
+        """Returns the cumulative product of elements in the dimension dim."""
+        if self.encrypted:
+            return NotImplemented
+        return syft.math.cumprod(self, dim)
+
+    def cumprod_(self, dim=0):
+        """calculate in-place the cumulative product of elements in the dimension dim."""
+        if self.encrypted:
+            return NotImplemented
+        self.data = syft.math.cumprod(self, dim).data
+        return self
+
     def split(self, split_size, dim=0):
         """Returns tuple of tensors of equally sized tensor/chunks (if possible)"""
         if self.encrypted:

Implement Default cumprod Functionality for Base Tensor Type
**User Story A:** As a Data Scientist using Syft's Base Tensor type, we want to implement a default method for computing operations on a Tensor of arbitrary type. For this ticket to be complete, cumprod() should return a new tensor. For a reference on the operation this performs check out [PyTorch](http://pytorch.org/docs/master/tensors.html)'s documentation.

**Acceptance Criteria:**
- If the Base Tensor type's attribute "encrypted" is set to True, it should return a NotImplemented error.
- a unit test demonstrating the correct operation on the Base Tensor type implemented over int and float Tensors.
- inline documentation in the python code. For inspiration on inline documentation, please check out [PyTorch](http://pytorch.org/docs/master/tensors.html)'s documentation for this operator.
diff --git a/tests/test_tensor.py b/tests/test_tensor.py
index fcded4a250..edd6a9d92c 100644
--- a/tests/test_tensor.py
+++ b/tests/test_tensor.py
@@ -647,6 +647,23 @@ class nonzeroTests(unittest.TestCase):
         self.assertTrue(np.array_equal(t2.data, np.array([[0, 1, 1], [0, 1, 2]])))
 
 
+class cumprodTest(unittest.TestCase):
+    def testCumprod(self):
+        t1 = TensorBase(np.array([[1, 2, 3], [4, 5, 6]]))
+        t2 = TensorBase(np.array([[1.0, 2.0, 3.0], [4.0, 10.0, 18.0]]))
+        t3 = TensorBase(np.array([[1, 2, 6], [4, 20, 120]]))
+        self.assertTrue(np.equal(t1.cumprod(dim=0), t2).all())
+        self.assertTrue(np.equal(t1.cumprod(dim=1), t3).all())
+
+    def testCumprod_(self):
+        t1 = TensorBase(np.array([[1, 2, 3], [4, 5, 6]]))
+        t2 = TensorBase(np.array([[1.0, 2.0, 3.0], [4.0, 10.0, 18.0]]))
+        t3 = TensorBase(np.array([[1, 2, 6], [4, 20, 120]]))
+        self.assertTrue(np.equal(t1.cumprod_(dim=0), t2).all())
+        t1 = TensorBase(np.array([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]))
+        self.assertTrue(np.equal(t1.cumprod_(dim=1), t3).all())
+
+
 class splitTests(unittest.TestCase):
     def testSplit(self):
         t1 = TensorBase(np.arange(8.0))

pip install -e .
parse_log_pytest
requirements.txt
line_profiler pytest
apt-get update apt-get install -y musl-dev g++ libgmp3-dev libmpfr-dev ca-certificates libmpc-dev
3.6
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
args==0.1.0
attrs==22.2.0
certifi==2021.5.30
clint==0.5.1
flake8==5.0.4
importlib-metadata==4.2.0
iniconfig==1.1.1
line-profiler==4.1.3
mccabe==0.7.0
numpy==1.19.5
packaging==21.3
phe==1.5.0
pluggy==1.0.0
py==1.11.0
pycodestyle==2.9.1
pyflakes==2.5.0
pyparsing==3.1.4
pyRserve==1.0.4
pytest==7.0.1
pytest-flake8==1.1.1
-e git+https://github.com/OpenMined/PySyft.git@02ba82e94de28b2dca463f06c22c7f4df4f78dd3#egg=syft
tomli==1.2.3
typing_extensions==4.1.1
zipp==3.6.0

name: PySyft
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - args==0.1.0
      - attrs==22.2.0
      - clint==0.5.1
      - flake8==5.0.4
      - importlib-metadata==4.2.0
      - iniconfig==1.1.1
      - line-profiler==4.1.3
      - mccabe==0.7.0
      - numpy==1.19.5
      - packaging==21.3
      - phe==1.5.0
      - pluggy==1.0.0
      - py==1.11.0
      - pycodestyle==2.9.1
      - pyflakes==2.5.0
      - pyparsing==3.1.4
      - pyrserve==1.0.4
      - pytest==7.0.1
      - pytest-flake8==1.1.1
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - zipp==3.6.0
prefix: /opt/conda/envs/PySyft

tests/test_tensor.py::cumprodTest::testCumprod tests/test_tensor.py::cumprodTest::testCumprod_
tests/test_tensor.py::DimTests::testAsView tests/test_tensor.py::DimTests::testDimOne tests/test_tensor.py::DimTests::testResize tests/test_tensor.py::DimTests::testResizeAs tests/test_tensor.py::DimTests::testSize tests/test_tensor.py::DimTests::testView tests/test_tensor.py::AddTests::testInplace tests/test_tensor.py::AddTests::testScalar tests/test_tensor.py::AddTests::testSimple tests/test_tensor.py::CeilTests::testCeil tests/test_tensor.py::CeilTests::testCeil_ tests/test_tensor.py::ZeroTests::testZero tests/test_tensor.py::FloorTests::testFloor_ tests/test_tensor.py::SubTests::testInplace tests/test_tensor.py::SubTests::testScalar tests/test_tensor.py::SubTests::testSimple tests/test_tensor.py::MaxTests::testAxis tests/test_tensor.py::MaxTests::testNoDim tests/test_tensor.py::MultTests::testInplace tests/test_tensor.py::MultTests::testScalar tests/test_tensor.py::MultTests::testSimple tests/test_tensor.py::DivTests::testInplace tests/test_tensor.py::DivTests::testScalar tests/test_tensor.py::DivTests::testSimple tests/test_tensor.py::AbsTests::testabs tests/test_tensor.py::AbsTests::testabs_ tests/test_tensor.py::ShapeTests::testShape tests/test_tensor.py::SqrtTests::testSqrt tests/test_tensor.py::SqrtTests::testSqrt_ tests/test_tensor.py::SumTests::testDimIsNotNoneInt tests/test_tensor.py::SumTests::testDimNoneInt tests/test_tensor.py::EqualTests::testEqOp tests/test_tensor.py::EqualTests::testEqual tests/test_tensor.py::EqualTests::testIneqOp tests/test_tensor.py::EqualTests::testNotEqual tests/test_tensor.py::IndexTests::testIndexing tests/test_tensor.py::sigmoidTests::testSigmoid tests/test_tensor.py::addmm::testaddmm1d tests/test_tensor.py::addmm::testaddmm2d tests/test_tensor.py::addmm::testaddmm_1d tests/test_tensor.py::addmm::testaddmm_2d tests/test_tensor.py::addcmulTests::testaddcmul1d tests/test_tensor.py::addcmulTests::testaddcmul2d tests/test_tensor.py::addcmulTests::testaddcmul_1d tests/test_tensor.py::addcmulTests::testaddcmul_2d tests/test_tensor.py::addcdivTests::testaddcdiv1d tests/test_tensor.py::addcdivTests::testaddcdiv2d tests/test_tensor.py::addcdivTests::testaddcdiv_1d tests/test_tensor.py::addcdivTests::testaddcdiv_2d tests/test_tensor.py::addmvTests::testaddmv tests/test_tensor.py::addmvTests::testaddmv_ tests/test_tensor.py::addbmmTests::testaddbmm tests/test_tensor.py::addbmmTests::testaddbmm_ tests/test_tensor.py::baddbmmTests::testbaddbmm tests/test_tensor.py::baddbmmTests::testbaddbmm_ tests/test_tensor.py::transposeTests::testT tests/test_tensor.py::transposeTests::testT_ tests/test_tensor.py::transposeTests::testTranspose tests/test_tensor.py::transposeTests::testTranspose_ tests/test_tensor.py::unsqueezeTests::testUnsqueeze tests/test_tensor.py::unsqueezeTests::testUnsqueeze_ tests/test_tensor.py::expTests::testexp tests/test_tensor.py::expTests::testexp_ tests/test_tensor.py::fracTests::testfrac tests/test_tensor.py::fracTests::testfrac_ tests/test_tensor.py::rsqrtTests::testrsqrt tests/test_tensor.py::rsqrtTests::testrsqrt_ tests/test_tensor.py::signTests::testsign tests/test_tensor.py::signTests::testsign_ tests/test_tensor.py::numpyTests::testnumpy tests/test_tensor.py::reciprocalTests::testreciprocal tests/test_tensor.py::reciprocalTests::testrsqrt_ tests/test_tensor.py::logTests::testLog tests/test_tensor.py::logTests::testLog1p tests/test_tensor.py::logTests::testLog1p_ tests/test_tensor.py::logTests::testLog_ tests/test_tensor.py::clampTests::testClampFloat tests/test_tensor.py::clampTests::testClampFloatInPlace tests/test_tensor.py::clampTests::testClampInt tests/test_tensor.py::clampTests::testClampIntInPlace tests/test_tensor.py::bernoulliTests::testBernoulli tests/test_tensor.py::bernoulliTests::testBernoulli_ tests/test_tensor.py::uniformTests::testUniform tests/test_tensor.py::uniformTests::testUniform_ tests/test_tensor.py::fillTests::testFill_ tests/test_tensor.py::topkTests::testTopK tests/test_tensor.py::tolistTests::testToList tests/test_tensor.py::traceTests::testTrace tests/test_tensor.py::roundTests::testRound tests/test_tensor.py::roundTests::testRound_ tests/test_tensor.py::repeatTests::testRepeat tests/test_tensor.py::powTests::testPow tests/test_tensor.py::powTests::testPow_ tests/test_tensor.py::prodTests::testProd tests/test_tensor.py::randomTests::testRandom_ tests/test_tensor.py::nonzeroTests::testNonZero tests/test_tensor.py::splitTests::testSplit tests/test_tensor.py::squeezeTests::testSqueeze tests/test_tensor.py::expandAsTests::testExpandAs
syft/tensor.py
syft/tensor.py