samuxiii: Ok, I've added slices into the index as a possible type of parameter. But.. I don't understand the comment about index_add_, I've almost used the same pytorch example as my unit test.
Please, could you be more explicit? Thanks
bharathgs: @samuxiii  ahh, my bad.did not see the `index_add_` properly. It looks good.
diff --git a/syft/tensor.py b/syft/tensor.py
index f5313aa491..719ae2d409 100644
--- a/syft/tensor.py
+++ b/syft/tensor.py
@@ -2848,6 +2848,97 @@ class TensorBase(object):
         self.data = np.remainder(self.data, divisor)
         return self
 
+    def index(self, m):
+        """
+        Returns a new Tensor with the element selected by position
+
+        :param m: integer index or slice
+        :return: tensor of selected indices
+        """
+        if self.encrypted:
+            return NotImplemented
+        if not isinstance(m, int) and not isinstance(m, slice):
+            raise ValueError("The value of index must be integer")
+        return TensorBase(self.data[m], self.encrypted)
+
+    def index_add_(self, dim, index, tensor):
+        """
+        Add the value of 'tensor' selecting the elements and ordered
+        by index. In-place operation.
+
+        :param dim: dimension along which to index
+        :param index: 1D tensor containing the indices to select
+        :param tensor: tensor containing the values to add
+        """
+        index = _ensure_tensorbase(index)
+        tensor = _ensure_tensorbase(tensor)
+
+        if self.encrypted:
+            return NotImplemented
+        if index.data.dtype != np.dtype('int_'):
+            raise TypeError("The value of index must be integer")
+        if self.data.shape != tensor.data.shape:
+            raise IndexError("Tensor has different shape")
+        if self.data.shape[dim] != index.data.size:
+            raise ValueError("Index should have the same number of elements as dimension")
+        if np.argmax(index.data > self.data.shape[dim]) != 0:
+            raise ValueError("Index contains a value which is out of range")
+        if dim >= self.data.ndim or dim < -self.data.ndim:
+            raise IndexError("Dimension out of range")
+
+        self.data += tensor.data.take(index, dim)
+
+    def index_copy_(self, dim, index, tensor):
+        """
+        Copy the values of 'tensor' selecting the elements and ordered
+        by index. In-place operation.
+
+        :para dim: dimension along which to index
+        :param index: 1D tensor containing the indices to select
+        :param tensor: tensor containing the values to add
+        """
+        index = _ensure_tensorbase(index)
+        tensor = _ensure_tensorbase(tensor)
+
+        if self.encrypted:
+            return NotImplemented
+        if index.data.dtype != np.dtype('int_'):
+            raise TypeError("The value of index must be integer")
+        if self.data.shape != tensor.data.shape:
+            raise IndexError("Tensor has different shape")
+        if self.data.shape[dim] != index.data.size:
+            raise ValueError("Index should have the same number of elements as dimension")
+        if np.argmax(index.data > self.data.shape[dim]) != 0:
+            raise ValueError("Index contains a value which is out of range")
+        if dim >= self.data.ndim or dim < -self.data.ndim:
+            raise IndexError("Dimension out of range")
+
+        np.copyto(self.data, tensor.data.take(index, dim))
+
+    def index_fill_(self, dim, index, value):
+        """
+        Fill the original tensor with the values of 'tensor' selecting
+        the elements and ordered by index. In-place operation.
+
+        :param dim: dimension along which to inde
+        :param index: 1D tensor containing the indices to select
+        :param value: value to fill
+        """
+        index = _ensure_tensorbase(index)
+
+        if self.encrypted:
+            return NotImplemented
+        if index.data.dtype != np.dtype('int_'):
+            raise TypeError("The value of index must be integer")
+        if np.argmax(index.data > self.data.shape[dim]) != 0:
+            raise ValueError("Index contains a value which is out of range")
+        if dim >= self.data.ndim or dim < -self.data.ndim:
+            raise IndexError("Dimension out of range")
+
+        idx = [slice(None)] * self.data.ndim
+        idx[dim] = index
+        self.data[tuple(idx)] = value
+
     def index_select(self, dim, index):
         """
         Returns a new Tensor which indexes the ``input`` Tensor along

Implement Default index 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, index() and index_select() should return a new tensor and index_add_(), index_copy_(), and index_fill_() should perform the operation 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 465370d309..bf91ebdc3a 100644
--- a/tests/test_tensor.py
+++ b/tests/test_tensor.py
@@ -4,6 +4,7 @@ import unittest
 from syft import tensor
 import numpy as np
 import math
+import pytest
 
 
 # Here's our "unit tests".
@@ -250,13 +251,6 @@ class EqualTests(unittest.TestCase):
         self.assertTrue(t1 != t2)
 
 
-class IndexTests(unittest.TestCase):
-    def test_indexing(self):
-        t1 = TensorBase(np.array([1.2, 2, 3]))
-        self.assertEqual(1.2, t1[0])
-        self.assertEqual(3, t1[-1])
-
-
 class sigmoidTests(unittest.TestCase):
     def test_sigmoid(self):
         t1 = TensorBase(np.array([1.2, 3.3, 4]))
@@ -954,7 +948,90 @@ class notEqualTests(unittest.TestCase):
         self.assertTrue(syft.equal(t1, TensorBase([1, 1, 1, 0])))
 
 
-class index_selectTests(unittest.TestCase):
+class IndexTests(unittest.TestCase):
+    def test_indexing(self):
+        t1 = TensorBase(np.array([1.2, 2, 3]))
+        self.assertEqual(1.2, t1[0])
+        self.assertEqual(3, t1[-1])
+
+    def test_index(self):
+        t = TensorBase(np.array([1, 2, 3.5, 4, 5, 6, 3.5]))
+        expected1 = TensorBase(np.array(2))
+        expected2 = TensorBase(np.array(3.5))
+        expected3 = TensorBase(np.array([4, 5, 6]))
+
+        self.assertEqual(expected1, t.index(1))
+        self.assertEqual(expected2, t.index(2))
+        self.assertEqual(expected2, t.index(-1))
+        self.assertEqual(expected3, t.index(slice(3, 6)))
+        with pytest.raises(ValueError):
+            t.index(3.5)
+
+    def test_index_add_(self):
+        t1 = TensorBase(np.array([[0, 0, 0], [1, 1, 1], [1, 1, 1]]))
+        t2 = TensorBase(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]))
+
+        expected_0 = TensorBase(np.array([[1, 2, 3], [8, 9, 10], [5, 6, 7]]))
+        t1.index_add_(0, [0, 2, 1], t2)
+        self.assertEqual(expected_0, t1)
+
+        t1 = TensorBase(np.array([[0, 0, 0], [1, 1, 1], [1, 1, 1]]))
+        expected_1 = TensorBase(np.array([[1, 3, 2], [5, 7, 6], [8, 10, 9]]))
+        t1.index_add_(1, [0, 2, 1], t2)
+        self.assertEqual(expected_1, t1)
+
+        with pytest.raises(TypeError):
+            t1.index_add_(0, [1.0, 2, 2], t2)
+        with pytest.raises(IndexError):
+            t1.index_add_(0, [0, 1, 2], TensorBase([1, 2]))
+        with pytest.raises(ValueError):
+            t1.index_add_(0, [0, 1], t2)
+        with pytest.raises(ValueError):
+            t1.index_add_(0, [0, 1, 5], t2)
+        with pytest.raises(IndexError):
+            t1.index_add_(4, [0, 1, 2], t2)
+
+    def test_index_copy_(self):
+        t1 = TensorBase(np.array([[0, 0, 0], [1, 1, 1], [1, 1, 1]]))
+        t2 = TensorBase(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]))
+        expected_0 = TensorBase(np.array([[1, 2, 3], [7, 8, 9], [4, 5, 6]]))
+        t1.index_copy_(0, [0, 2, 1], t2)
+        self.assertEqual(expected_0, t1)
+
+        t1 = TensorBase(np.array([[0, 0, 0], [1, 1, 1], [1, 1, 1]]))
+        expected_1 = TensorBase(np.array([[3, 1, 2], [6, 4, 5], [9, 7, 8]]))
+        t1.index_copy_(1, [2, 0, 1], t2)
+        self.assertEqual(expected_1, t1)
+
+        with pytest.raises(TypeError):
+            t1.index_copy_(0, [1.0, 2, 2], t2)
+        with pytest.raises(IndexError):
+            t1.index_copy_(0, [0, 1, 2], TensorBase([1, 2]))
+        with pytest.raises(ValueError):
+            t1.index_copy_(0, [0, 1], t2)
+        with pytest.raises(ValueError):
+            t1.index_copy_(0, [0, 1, 5], t2)
+        with pytest.raises(IndexError):
+            t1.index_copy_(4, [0, 1, 2], t2)
+
+    def test_index_fill_(self):
+        t1 = TensorBase(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]))
+        expected_0 = TensorBase(np.array([[1, 1, 1], [1, 1, 1], [7, 8, 9]]))
+        t1.index_fill_(0, [0, 1], 1)
+        self.assertEqual(expected_0, t1)
+
+        t1 = TensorBase(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]))
+        expected_1 = TensorBase(np.array([[-2, 2, -2], [-2, 5, -2], [-2, 8, -2]]))
+        t1.index_fill_(1, [0, 2], -2)
+        self.assertEqual(expected_1, t1)
+
+        with pytest.raises(TypeError):
+            t1.index_fill_(0, [1.0, 2, 2], 1)
+        with pytest.raises(ValueError):
+            t1.index_fill_(0, [0, 1, 5], 1)
+        with pytest.raises(IndexError):
+            t1.index_fill_(4, [0, 1, 2], 1)
+
     def test_index_select(self):
         t = TensorBase(np.reshape(np.arange(0, 2 * 3 * 4), (2, 3, 4)))
         idx = np.array([1, 0])

pip install -e .
parse_log_pytest
requirements.txt
pytest pytest-flake8
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
joblib==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
scikit-learn==0.24.2
scipy==1.5.4
sklearn==0.0
-e git+https://github.com/OpenMined/PySyft.git@65b9352e9e349c7f932f52904d6f913a09f9a025#egg=syft
threadpoolctl==3.1.0
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
      - joblib==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
      - scikit-learn==0.24.2
      - scipy==1.5.4
      - sklearn==0.0
      - threadpoolctl==3.1.0
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - zipp==3.6.0
prefix: /opt/conda/envs/PySyft

tests/test_tensor.py::IndexTests::test_index tests/test_tensor.py::IndexTests::test_index_add_ tests/test_tensor.py::IndexTests::test_index_copy_ tests/test_tensor.py::IndexTests::test_index_fill_
tests/test_tensor.py::DimTests::test_as_view tests/test_tensor.py::DimTests::test_dim_one tests/test_tensor.py::DimTests::test_nelement tests/test_tensor.py::DimTests::test_resize tests/test_tensor.py::DimTests::test_resize_as tests/test_tensor.py::DimTests::test_size tests/test_tensor.py::DimTests::test_view tests/test_tensor.py::DiagTests::test_one_dim_tensor_below_diag tests/test_tensor.py::DiagTests::test_one_dim_tensor_main_diag tests/test_tensor.py::DiagTests::test_one_dim_tensor_upper_diag tests/test_tensor.py::DiagTests::test_two_dim_tensor_below_diag tests/test_tensor.py::DiagTests::test_two_dim_tensor_main_diag tests/test_tensor.py::DiagTests::test_two_dim_tensor_upper_diag tests/test_tensor.py::AddTests::test_inplace tests/test_tensor.py::AddTests::test_scalar tests/test_tensor.py::AddTests::test_simple tests/test_tensor.py::CeilTests::test_ceil tests/test_tensor.py::CeilTests::test_ceil_ tests/test_tensor.py::ZeroTests::test_zero tests/test_tensor.py::FloorTests::test_floor_ tests/test_tensor.py::SubTests::test_inplace tests/test_tensor.py::SubTests::test_scalar tests/test_tensor.py::SubTests::test_simple tests/test_tensor.py::MaxTests::test_axis tests/test_tensor.py::MaxTests::test_no_dim tests/test_tensor.py::MultTests::test_inplace tests/test_tensor.py::MultTests::test_scalar tests/test_tensor.py::MultTests::test_simple tests/test_tensor.py::DivTests::test_inplace tests/test_tensor.py::DivTests::test_scalar tests/test_tensor.py::DivTests::test_simple tests/test_tensor.py::AbsTests::test_abs tests/test_tensor.py::AbsTests::test_abs_ tests/test_tensor.py::ShapeTests::test_shape tests/test_tensor.py::SqrtTests::test_sqrt tests/test_tensor.py::SqrtTests::test_sqrt_ tests/test_tensor.py::SumTests::test_dim_is_not_none_int tests/test_tensor.py::SumTests::test_dim_none_int tests/test_tensor.py::EqualTests::test_equal tests/test_tensor.py::EqualTests::test_equal_operation tests/test_tensor.py::EqualTests::test_inequality_operation tests/test_tensor.py::EqualTests::test_not_equal tests/test_tensor.py::sigmoidTests::test_sigmoid tests/test_tensor.py::addmm::test_addmm_1d tests/test_tensor.py::addmm::test_addmm_2d tests/test_tensor.py::addmm::test_addmm__1d tests/test_tensor.py::addmm::test_addmm__2d tests/test_tensor.py::addcmulTests::test_addcmul_1d tests/test_tensor.py::addcmulTests::test_addcmul_2d tests/test_tensor.py::addcmulTests::test_addcmul__1d tests/test_tensor.py::addcmulTests::test_addcmul__2d tests/test_tensor.py::addcdivTests::test_addcdiv_1d tests/test_tensor.py::addcdivTests::test_addcdiv_2d tests/test_tensor.py::addcdivTests::test_addcdiv__1d tests/test_tensor.py::addcdivTests::test_addcdiv__2d tests/test_tensor.py::addmvTests::test_addmv tests/test_tensor.py::addmvTests::test_addmv_ tests/test_tensor.py::bmmTests::test_bmm tests/test_tensor.py::bmmTests::test_bmm_size tests/test_tensor.py::addbmmTests::test_addbmm tests/test_tensor.py::addbmmTests::test_addbmm_ tests/test_tensor.py::baddbmmTests::test_baddbmm tests/test_tensor.py::baddbmmTests::test_baddbmm_ tests/test_tensor.py::transposeTests::test_t tests/test_tensor.py::transposeTests::test_transpose tests/test_tensor.py::transposeTests::test_transpose_ tests/test_tensor.py::unsqueezeTests::test_unsqueeze tests/test_tensor.py::unsqueezeTests::test_unsqueeze_ tests/test_tensor.py::expTests::test_exp tests/test_tensor.py::expTests::test_exp_ tests/test_tensor.py::fracTests::test_frac tests/test_tensor.py::fracTests::test_frac_ tests/test_tensor.py::rsqrtTests::test_rsqrt tests/test_tensor.py::rsqrtTests::test_rsqrt_ tests/test_tensor.py::signTests::test_sign tests/test_tensor.py::signTests::test_sign_ tests/test_tensor.py::numpyTests::test_numpy tests/test_tensor.py::reciprocalTests::test_reciprocal tests/test_tensor.py::reciprocalTests::test_reciprocal_ tests/test_tensor.py::logTests::test_log tests/test_tensor.py::logTests::test_log_ tests/test_tensor.py::logTests::test_log_1p tests/test_tensor.py::logTests::test_log_1p_ tests/test_tensor.py::clampTests::test_clamp_float tests/test_tensor.py::clampTests::test_clamp_float_in_place tests/test_tensor.py::clampTests::test_clamp_int tests/test_tensor.py::clampTests::test_clamp_int_in_place tests/test_tensor.py::cloneTests::test_clone tests/test_tensor.py::chunkTests::test_chunk tests/test_tensor.py::chunkTests::test_chunk_same_size tests/test_tensor.py::gtTests::test_gt__in_place_with_number tests/test_tensor.py::gtTests::test_gt__in_place_with_tensor tests/test_tensor.py::gtTests::test_gt_with_encrypted tests/test_tensor.py::gtTests::test_gt_with_number tests/test_tensor.py::gtTests::test_gt_with_tensor tests/test_tensor.py::geTests::test_ge__in_place_with_number tests/test_tensor.py::geTests::test_ge__in_place_with_tensor tests/test_tensor.py::geTests::test_ge_with_encrypted tests/test_tensor.py::geTests::test_ge_with_number tests/test_tensor.py::geTests::test_ge_with_tensor tests/test_tensor.py::ltTests::test_lt__in_place_with_number tests/test_tensor.py::ltTests::test_lt__in_place_with_tensor tests/test_tensor.py::ltTests::test_lt_with_encrypted tests/test_tensor.py::ltTests::test_lt_with_number tests/test_tensor.py::ltTests::test_lt_with_tensor tests/test_tensor.py::leTests::test_le__in_place_with_number tests/test_tensor.py::leTests::test_le__in_place_with_tensor tests/test_tensor.py::leTests::test_le_with_encrypted tests/test_tensor.py::leTests::test_le_with_number tests/test_tensor.py::leTests::test_le_with_tensor tests/test_tensor.py::bernoulliTests::test_bernoulli tests/test_tensor.py::bernoulliTests::test_bernoulli_ tests/test_tensor.py::cauchyTests::test_cauchy_ tests/test_tensor.py::uniformTests::test_uniform tests/test_tensor.py::uniformTests::test_uniform_ tests/test_tensor.py::geometricTests::test_geometric_ tests/test_tensor.py::normalTests::test_normal tests/test_tensor.py::normalTests::test_normal_ tests/test_tensor.py::fillTests::test_fill_ tests/test_tensor.py::topkTests::test_topK tests/test_tensor.py::tolistTests::test_to_list tests/test_tensor.py::traceTests::test_trace tests/test_tensor.py::roundTests::test_round tests/test_tensor.py::roundTests::test_round_ tests/test_tensor.py::repeatTests::test_repeat tests/test_tensor.py::powTests::test_pow tests/test_tensor.py::powTests::test_pow_ tests/test_tensor.py::negTests::test_neg tests/test_tensor.py::negTests::test_neg_ tests/test_tensor.py::tanhTests::test_tanh_ tests/test_tensor.py::prodTests::test_prod tests/test_tensor.py::randomTests::test_random_ tests/test_tensor.py::nonzeroTests::test_non_zero tests/test_tensor.py::cumprodTest::test_cumprod tests/test_tensor.py::cumprodTest::test_cumprod_ tests/test_tensor.py::splitTests::test_split tests/test_tensor.py::squeezeTests::test_squeeze tests/test_tensor.py::expandAsTests::test_expand_as tests/test_tensor.py::meanTests::test_mean tests/test_tensor.py::notEqualTests::test_ne tests/test_tensor.py::notEqualTests::test_ne_ tests/test_tensor.py::IndexTests::test_index_select tests/test_tensor.py::IndexTests::test_indexing tests/test_tensor.py::gatherTests::test_gather_numerical_1 tests/test_tensor.py::gatherTests::test_gather_numerical_2 tests/test_tensor.py::scatterTests::test_scatter_dim_out_Of_range tests/test_tensor.py::scatterTests::test_scatter_index_out_of_range tests/test_tensor.py::scatterTests::test_scatter_index_src_dimension_mismatch tests/test_tensor.py::scatterTests::test_scatter_index_type tests/test_tensor.py::scatterTests::test_scatter_numerical_0 tests/test_tensor.py::scatterTests::test_scatter_numerical_1 tests/test_tensor.py::scatterTests::test_scatter_numerical_2 tests/test_tensor.py::scatterTests::test_scatter_numerical_3 tests/test_tensor.py::scatterTests::test_scatter_numerical_4 tests/test_tensor.py::scatterTests::test_scatter_numerical_5 tests/test_tensor.py::scatterTests::test_scatter_numerical_6 tests/test_tensor.py::remainderTests::test_remainder_ tests/test_tensor.py::remainderTests::test_remainder_broadcasting tests/test_tensor.py::testMv::test_mv tests/test_tensor.py::testMv::test_mv_tensor tests/test_tensor.py::masked_scatter_Tests::test_masked_scatter_1 tests/test_tensor.py::masked_scatter_Tests::test_masked_scatter_braodcasting_1 tests/test_tensor.py::masked_scatter_Tests::test_masked_scatter_braodcasting_2 tests/test_tensor.py::masked_fill_Tests::test_masked_fill_ tests/test_tensor.py::masked_fill_Tests::test_masked_fill_broadcasting tests/test_tensor.py::masked_select_Tests::test_masked_select tests/test_tensor.py::masked_select_Tests::test_masked_select_broadcasting_1 tests/test_tensor.py::masked_select_Tests::test_masked_select_broadcasting_2 tests/test_tensor.py::masked_select_Tests::test_tensor_base_masked_select tests/test_tensor.py::eqTests::test_eq_in_place_with_number tests/test_tensor.py::eqTests::test_eq_in_place_with_tensor tests/test_tensor.py::eqTests::test_eq_with_number tests/test_tensor.py::eqTests::test_eq_with_tensor tests/test_tensor.py::mm_test::test_mm_1d tests/test_tensor.py::mm_test::test_mm_2d tests/test_tensor.py::mm_test::test_mm_3d tests/test_tensor.py::newTensorTests::test_encrypted_error tests/test_tensor.py::newTensorTests::test_return_new_float_tensor tests/test_tensor.py::newTensorTests::test_return_new_int_tensor tests/test_tensor.py::fmodTest::test_fmod_number tests/test_tensor.py::fmodTest::test_fmod_tensor tests/test_tensor.py::fmod_Test::test_fmod_number tests/test_tensor.py::fmod_Test::test_fmod_tensor
syft/tensor.py
syft/tensor.py