In [1]:
import syft as sy
import torch as th
import numpy as np

sy.create_sandbox(globals(), False, False)


Setting up Sandbox...
Done!

In [2]:
from syft.frameworks.torch.tensors.interpreters.numpy import NumpyTensor

In [46]:
x = NumpyTensor(numpy_tensor=np.array([[1,2,3,4]])).wrap()
y = x.dot(x.transpose())
assert (y.child.child == np.array([[30]])).all()

In [38]:


In [42]:



Out[42]:
True

In [ ]: