tf-encrypted / moose

Secure distributed dataflow framework for encrypted machine learning and data processing
Apache License 2.0
57 stars 15 forks source link

BitArray slicing #1066

Open rdragos opened 2 years ago

rdragos commented 2 years ago

Currently we only support slicing for HostRingTensor or native HostTensor.

This issue is relating to add support for slicing HostBitTensor(BitArray). One can solve it by borrowing the slicing implementation from ndarray and adapt it to BitArray or convert the BitArray to an ArrayBase, call the ndarray slice mechanism and then convert data back to BitArray.

The downside of the latter method is that it increases the memory footprint.