diff --git a/syft/tensor.py b/syft/tensor.py
index 0aed1c3ef8..7d31e2e430 100644
--- a/syft/tensor.py
+++ b/syft/tensor.py
@@ -1034,6 +1034,67 @@ class TensorBase(object):
         hist, edges = np.histogram(np.array(self.data), bins=bins, range=(min, max))
         return TensorBase(hist)
 
+    def scatter_(self, dim, index, src):
+        """
+        Writes all values from the Tensor src into self at the indices specified in the index Tensor.
+        The indices are specified with respect to the given dimension, dim, in the manner described in gather().
+
+        :param dim: The axis along which to index
+        :param index: The indices of elements to scatter
+        :param src: The source element(s) to scatter
+        :return: self
+        """
+        index = _ensure_tensorbase(index)
+        if self.encrypted or index.encrypted:
+            return NotImplemented
+        if index.data.dtype != np.dtype('int_'):
+            raise TypeError("The values of index must be integers")
+        if self.data.ndim != index.data.ndim:
+            raise ValueError("Index should have the same number of dimensions as output")
+        if dim >= self.data.ndim or dim < -self.data.ndim:
+            raise IndexError("dim is out of range")
+        if dim < 0:
+            # Not sure why scatter should accept dim < 0, but that is the behavior in PyTorch's scatter
+            dim = self.data.ndim + dim
+        idx_xsection_shape = index.data.shape[:dim] + index.data.shape[dim + 1:]
+        self_xsection_shape = self.data.shape[:dim] + self.data.shape[dim + 1:]
+        if idx_xsection_shape != self_xsection_shape:
+            raise ValueError("Except for dimension " + str(dim) +
+                             ", all dimensions of index and output should be the same size")
+        if (index.data >= self.data.shape[dim]).any() or (index.data < 0).any():
+            raise IndexError("The values of index must be between 0 and (self.data.shape[dim] -1)")
+
+        def make_slice(arr, dim, i):
+            slc = [slice(None)] * arr.ndim
+            slc[dim] = i
+            return slc
+
+        # We use index and dim parameters to create idx
+        # idx is in a form that can be used as a NumPy advanced index for scattering of src param. in self.data
+        idx = [[*np.indices(idx_xsection_shape).reshape(index.data.ndim - 1, -1),
+                index.data[make_slice(index.data, dim, i)].reshape(1, -1)[0]] for i in range(index.data.shape[dim])]
+        idx = list(np.concatenate(idx, axis=1))
+        idx.insert(dim, idx.pop())
+
+        if not np.isscalar(src):
+            src = _ensure_tensorbase(src)
+            if index.data.shape[dim] > src.data.shape[dim]:
+                raise IndexError("Dimension " + str(dim) + "of index can not be bigger than that of src ")
+            src_shape = src.data.shape[:dim] + src.data.shape[dim + 1:]
+            if idx_xsection_shape != src_shape:
+                raise ValueError("Except for dimension " +
+                                 str(dim) + ", all dimensions of index and src should be the same size")
+            # src_idx is a NumPy advanced index for indexing of elements in the src
+            src_idx = list(idx)
+            src_idx.pop(dim)
+            src_idx.insert(dim, np.repeat(np.arange(index.data.shape[dim]), np.prod(idx_xsection_shape)))
+            self.data[idx] = src.data[src_idx]
+
+        else:
+            self.data[idx] = src
+
+        return self
+
     def serialize(self):
         return pickle.dumps(self)
 

Implement Default scatter Functionality for Base Tensor Type
**User Story A:** As a Data Scientist using Syft's Base Tensor type, I want to leverage a default method for computing operations on a Tensor of arbitrary type. For this ticket to be complete, scatter_() should operate inline. 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 d666b46e88..f586ff59ac 100644
--- a/tests/test_tensor.py
+++ b/tests/test_tensor.py
@@ -726,5 +726,100 @@ class notEqualTests(unittest.TestCase):
         self.assertTrue(syft.equal(t1, TensorBase([1, 1, 1, 0])))
 
 
+class scatterTests(unittest.TestCase):
+    def testScatter_Numerical0(self):
+        t = TensorBase(np.zeros((3, 5)))
+        idx = TensorBase(np.array([[0, 0, 0, 0, 0]]))
+        src = 1.0
+        dim = 0
+        t.scatter_(dim=dim, index=idx, src=src)
+        self.assertTrue(np.array_equal(t.data, np.array([[1, 1, 1, 1, 1], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]])))
+
+    def testScatter_Numerical1(self):
+        t = TensorBase(np.zeros((3, 5)))
+        idx = TensorBase(np.array([[0], [0], [0]]))
+        src = 1.0
+        dim = 1
+        t.scatter_(dim=dim, index=idx, src=src)
+        self.assertTrue(np.array_equal(t.data, np.array([[1, 0, 0, 0, 0], [1, 0, 0, 0, 0], [1, 0, 0, 0, 0]])))
+
+    def testScatter_Numerical2(self):
+        t = TensorBase(np.zeros((3, 5)))
+        idx = TensorBase(np.array([[0], [0], [0]]))
+        src = 1.0
+        dim = -1
+        t.scatter_(dim=dim, index=idx, src=src)
+        self.assertTrue(np.array_equal(t.data, np.array([[1, 0, 0, 0, 0], [1, 0, 0, 0, 0], [1, 0, 0, 0, 0]])))
+
+    def testScatter_Numerical3(self):
+        t = TensorBase(np.zeros((3, 5)))
+        idx = TensorBase(np.array([[0, 0, 0, 0, 0]]))
+        src = TensorBase(np.array([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]]))
+        dim = 0
+        t.scatter_(dim=dim, index=idx, src=src)
+        self.assertTrue(np.array_equal(t.data, np.array([[1, 2, 3, 4, 5], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]])))
+
+    def testScatter_Numerical4(self):
+        t = TensorBase(np.zeros((3, 5)))
+        idx = TensorBase(np.array([[0, 0, 0, 0, 0]]))
+        src = TensorBase(np.array([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]]))
+        dim = -2
+        t.scatter_(dim=dim, index=idx, src=src)
+        self.assertTrue(np.array_equal(t.data, np.array([[1, 2, 3, 4, 5], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]])))
+
+    def testScatter_Numerical5(self):
+        t = TensorBase(np.zeros((3, 5)))
+        idx = TensorBase(np.array([[0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]))
+        src = TensorBase(np.array([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]]))
+        dim = 0
+        t.scatter_(dim=dim, index=idx, src=src)
+        self.assertTrue(np.array_equal(t.data, np.array([[6, 7, 8, 9, 10], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]])))
+
+    def testScatter_Numerical6(self):
+        t = TensorBase(np.zeros((3, 4, 5)))
+        idx = [[[3, 0, 1, 1, 2], [0, 3, 3, 3, 3]], [[2, 0, 0, 0, 0], [2, 1, 0, 2, 0]],
+               [[0, 0, 1, 0, 2], [1, 3, 2, 2, 2]]]
+        src = [[[7, 84, 99, 71, 44], [79, 57, 2, 37, 62]], [[31, 44, 43, 54, 56], [72, 52, 21, 89, 95]],
+               [[5, 3, 99, 4, 52], [32, 88, 58, 62, 9]]]
+        dim = 1
+        t.scatter_(dim=dim, index=idx, src=src)
+        expected = [[[79, 84, 0, 0, 0], [0, 0, 99, 71, 0], [0, 0, 0, 0, 44], [7, 57, 2, 37, 62]],
+                    [[0, 44, 21, 54, 95], [0, 52, 0, 0, 0], [72, 0, 0, 89, 0], [0, 0, 0, 0, 0]],
+                    [[5, 3, 0, 4, 0], [32, 0, 99, 0, 0], [0, 0, 58, 62, 9], [0, 88, 0, 0, 0]]]
+        self.assertTrue(np.array_equal(t.data, np.array(expected)))
+
+    def testScatter_IndexType(self):
+        t = TensorBase(np.zeros((3, 5)))
+        idx = TensorBase(np.array([[0.0, 0.0, 0.0, 0.0, 0.0]]))
+        src = TensorBase(np.array([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]]))
+        dim = 0
+        with self.assertRaises(Exception):
+            t.scatter_(dim=dim, index=idx, src=src)
+
+    def testScatter_IndexOutOfRange(self):
+        t = TensorBase(np.zeros((3, 5)))
+        idx = TensorBase(np.array([[5, 0, 0, 0, 0]]))
+        src = TensorBase(np.array([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]]))
+        dim = 0
+        with self.assertRaises(Exception):
+            t.scatter_(dim=dim, index=idx, src=src)
+
+    def testScatter_DimOutOfRange(self):
+        t = TensorBase(np.zeros((3, 5)))
+        idx = TensorBase(np.array([[0, 0, 0, 0, 0]]))
+        src = TensorBase(np.array([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]]))
+        dim = 4
+        with self.assertRaises(Exception):
+            t.scatter_(dim=dim, index=idx, src=src)
+
+    def testScatter_index_src_dimension_mismatch(self):
+        t = TensorBase(np.zeros((3, 5)))
+        idx = TensorBase(np.array([[0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]))
+        src = TensorBase(np.array([[1, 2, 3, 4, 5]]))
+        dim = 1
+        with self.assertRaises(Exception):
+            t.scatter_(dim=dim, index=idx, src=src)
+
+
 if __name__ == "__main__":
     unittest.main()

pip install -e .
parse_log_pytest
requirements.txt
pytest pytest-flake8
apt-get update apt-get install -y gcc 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
scipy==1.5.4
-e git+https://github.com/OpenMined/PySyft.git@6c049ac8c4c2e9598bbd495d9a5fd716d3e46126#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
      - scipy==1.5.4
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - zipp==3.6.0
prefix: /opt/conda/envs/PySyft

tests/test_tensor.py::scatterTests::testScatter_Numerical0 tests/test_tensor.py::scatterTests::testScatter_Numerical1 tests/test_tensor.py::scatterTests::testScatter_Numerical2 tests/test_tensor.py::scatterTests::testScatter_Numerical3 tests/test_tensor.py::scatterTests::testScatter_Numerical4 tests/test_tensor.py::scatterTests::testScatter_Numerical5 tests/test_tensor.py::scatterTests::testScatter_Numerical6
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::cloneTests::testClone tests/test_tensor.py::chunkTests::testChunk tests/test_tensor.py::chunkTests::testChunkSameSize 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::cumprodTest::testCumprod tests/test_tensor.py::cumprodTest::testCumprod_ tests/test_tensor.py::splitTests::testSplit tests/test_tensor.py::squeezeTests::testSqueeze tests/test_tensor.py::expandAsTests::testExpandAs tests/test_tensor.py::meanTests::testMean tests/test_tensor.py::notEqualTests::testNe tests/test_tensor.py::notEqualTests::testNe_ tests/test_tensor.py::scatterTests::testScatter_DimOutOfRange tests/test_tensor.py::scatterTests::testScatter_IndexOutOfRange tests/test_tensor.py::scatterTests::testScatter_IndexType tests/test_tensor.py::scatterTests::testScatter_index_src_dimension_mismatch
syft/tensor.py
syft/tensor.py