Open3D
Open3D copied to clipboard
Enable pickling for tensor and tensor based geometry
This PR makes Tensor, TensorMap and tensor based geometry pickling.
Current behaviours:
- Tensor will be on the same device after de-serialization.
- Non contiguous tensor will be converted to contiguous tensor after de-serilization.
Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes.
LGTM after adding python unit tests.
- Add python unit tests for pickling support.
- Minor change
PointCloud::ToString()output to be consistent withTriangleMesh:
PointCloud on CPU:0 [2 points (Float32)].
Attributes: normals (dtype = Float32, shape = {2, 3}).
@yxlao
Great work. It would be very helpful to add a brief documentation example on the Tensor page. TODO: Check newly added features that are missing documentation and make a priority-based checklist for the same.
It would be very helpful to add a brief documentation example on the Tensor page
Sounds good, I will add it later.