-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to concatenate ReplicatedSharedTensor
?
#324
Comments
added cat_replicatedShare_tensor in apy.py and static.py for the concatenation of ReplicatedSharedTensor |
- refer to OpenMined/SyMPC#324
- refer to issue OpenMined#324 - `cat` can concatenates `ShareTensor`s, but it is not workable for `ReplicatedSharedTensor`. - added `cat_replicatedShare_tensor` in *apy.py* and *static.py* for the concatenation of `ReplicatedSharedTensor`.
- refer to issue OpenMined#324 - `cat` can concatenates `ShareTensor`s, but it is not workable for `ReplicatedSharedTensor`. - added `cat_replicatedShare_tensor` in *apy.py* and *static.py* for the concatenation of `ReplicatedSharedTensor`.
* `cat` concatenates `ReplicatedSharedTensor` - refer to issue #324 - `cat` can concatenates `ShareTensor`s, but it is not workable for `ReplicatedSharedTensor`. - added `cat_replicatedShare_tensor` in *apy.py* and *static.py* for the concatenation of `ReplicatedSharedTensor`. * Saving a variable and formatting Format The following commands have been run: - `python -m black tensor/static.py` - `python -m black api.py` - `isort tensor/static.py` Save number of replicated shares as a variable - Q: Could you save the len(shares[0].shares) in a variable and then use it here and on line 140? [x]*done* Amended docstring - `shares` is a tuple of `ReplicatedSharedTensor`s - the empty blank is deleted in `cat_replicatedShare_tensor` * For Python3.7 that doesn't support `math.prod` - python 3.7 cannot support `math.prod`, only python 3.8+ can. * Remove python3.7 * Remove tutorial python3.7 Co-authored-by: George Muraru <murarugeorgec@gmail.com>
Hi,
I noticed
sympc.tensor.static.cat
can concatenateShareTensor
s, but it couldn't supportReplicatedSharedTensor
. So, I wonder if there exists a method to concatenateReplicatedSharedTensor
?Thanks,
Timo
The text was updated successfully, but these errors were encountered: