SyMPC
SyMPC copied to clipboard
Add __str__ and __repr__ methods to ReplicatedSharedTensor
Description
Closes #230.
Affected Dependencies
N.A.
How has this been tested?
Python tests have passed successfully.
Checklist
- [x] I have followed the Contribution Guidelines and Code of Conduct
- [x] I have commented my code following the OpenMined Styleguide
- [ ] I have labeled this PR with the relevant Type labels
- [x] My changes are covered by tests
Could you run black
formatter over the codebase?
Could you run
black
formatter over the codebase?
I ran black
but it seems to have changed a lot of files that I have not edited. Is this expected?
Could you run
black
formatter over the codebase?I ran
black
but it seems to have changed a lot of files that I have not edited. Is this expected?
Hmm...did you run the black
version from the requirements file? It might be that you have another version (and sometimes black rules might change between versions)
Could you run
black
formatter over the codebase?I ran
black
but it seems to have changed a lot of files that I have not edited. Is this expected?Hmm...did you run the
black
version from the requirements file? It might be that you have another version (and sometimes black rules might change between versions)
Yes, this seems to be this issue. I installed the black
version in the requirements file and ran it again. Only one file which I did not change was reformatted this time. Does it look good?
Could you run
black
formatter over the codebase?I ran
black
but it seems to have changed a lot of files that I have not edited. Is this expected?Hmm...did you run the
black
version from the requirements file? It might be that you have another version (and sometimes black rules might change between versions)Yes, this seems to be this issue. I installed the
black
version in the requirements file and ran it again. Only one file which I did not change was reformatted this time. Does it look good?
Hmm..I think you need to run black
by using the version you have installed in the local virtual environment.
Something like: ./venv/bin/python -m black .