OpenMined / PySyft

Perform data science on data that remains in someone else's server
https://www.openmined.org/
Apache License 2.0
9.52k stars 1.99k forks source link

Rework custom tensor types using PyTorch 1.5's support for extending `torch.tensor` #2991

Closed karlhigley closed 4 years ago

karlhigley commented 4 years ago

Is your feature request related to a problem? Please describe. The current method of hooking tensors doesn't interoperate smoothly with PyTorch's JIT, which makes it difficult to impossible to convert a Torch model's backward pass to Torchscript for serialization to mobile devices.

Describe the solution you'd like Rework the way tensor types are defined and hooked to use PyTorch's new affordances for extending torch.tensor for smoother interoperation with the JIT tracer.

Describe alternatives you've considered

Additional context Rough roadmap of the core primitives:

github-actions[bot] commented 4 years ago

This issue has been marked stale because it has been open 30 days with no activity. Leave a comment or remove the stale label to unmark it. Otherwise, this will be closed in 7 days.