---------------------------------------------------------------------------
PureFrameworkTensorFoundError Traceback (most recent call last)
~/Laboratory/openmined/PySyft/venv/lib/python3.6/site-packages/syft-0.2.0a2-py3.6.egg/syft/frameworks/torch/tensors/interpreters/native.py in handle_func_command(cls, command)
288 new_args, new_kwargs, new_type, args_type = hook_args.unwrap_args_from_function(
--> 289 cmd, args, kwargs, return_args_type=True
290 )
~/Laboratory/openmined/PySyft/venv/lib/python3.6/site-packages/syft-0.2.0a2-py3.6.egg/syft/generic/frameworks/hook/hook_args.py in unwrap_args_from_function(attr, args, kwargs, return_args_type)
166 # Run it
--> 167 new_args = args_hook_function(args)
168
~/Laboratory/openmined/PySyft/venv/lib/python3.6/site-packages/syft-0.2.0a2-py3.6.egg/syft/generic/frameworks/hook/hook_args.py in <lambda>(x)
349
--> 350 return lambda x: f(lambdas, x)
351
~/Laboratory/openmined/PySyft/venv/lib/python3.6/site-packages/syft-0.2.0a2-py3.6.egg/syft/generic/frameworks/hook/hook_args.py in two_fold(lambdas, args, **kwargs)
521 def two_fold(lambdas, args, **kwargs):
--> 522 return lambdas[0](args[0], **kwargs), lambdas[1](args[1], **kwargs)
523
~/Laboratory/openmined/PySyft/venv/lib/python3.6/site-packages/syft-0.2.0a2-py3.6.egg/syft/generic/frameworks/hook/hook_args.py in <lambda>(i)
327 # Last if not, rule is probably == 1 so use type to return the right transformation.
--> 328 else lambda i: forward_func[type(i)](i)
329 for a, r in zip(args, rules) # And do this for all the args / rules provided
~/Laboratory/openmined/PySyft/venv/lib/python3.6/site-packages/syft-0.2.0a2-py3.6.egg/syft/frameworks/torch/hook/hook_args.py in <lambda>(i)
29 if hasattr(i, "child")
---> 30 else (_ for _ in ()).throw(PureFrameworkTensorFoundError),
31 torch.nn.Parameter: lambda i: i.child
~/Laboratory/openmined/PySyft/venv/lib/python3.6/site-packages/syft-0.2.0a2-py3.6.egg/syft/frameworks/torch/hook/hook_args.py in <genexpr>(.0)
29 if hasattr(i, "child")
---> 30 else (_ for _ in ()).throw(PureFrameworkTensorFoundError),
31 torch.nn.Parameter: lambda i: i.child
PureFrameworkTensorFoundError:
During handling of the above exception, another exception occurred:
RuntimeError Traceback (most recent call last)
<ipython-input-17-37935d409568> in <module>
----> 1 th.add(x,y)
~/Laboratory/openmined/PySyft/venv/lib/python3.6/site-packages/syft-0.2.0a2-py3.6.egg/syft/generic/frameworks/hook/hook.py in overloaded_func(*args, **kwargs)
485 handle_func_command = syft.framework.Tensor.handle_func_command
486
--> 487 response = handle_func_command(command)
488
489 return response
~/Laboratory/openmined/PySyft/venv/lib/python3.6/site-packages/syft-0.2.0a2-py3.6.egg/syft/frameworks/torch/tensors/interpreters/native.py in handle_func_command(cls, command)
321 # in the execute_command function
322 if isinstance(args, tuple):
--> 323 response = eval(cmd)(*args, **kwargs)
324 else:
325 response = eval(cmd)(args, **kwargs)
RuntimeError: The size of tensor a (0) must match the size of tensor b (5) at non-singleton dimension 1