Skip to content

Commit

Permalink
Repo sync (#572)
Browse files Browse the repository at this point in the history
# Pull Request

## What problem does this PR solve?

Issue Number: Fixed #570 

## Possible side effects?

- Performance:

- Backward compatibility:
  • Loading branch information
anakinxc authored Feb 23, 2024
1 parent eb69d17 commit ba2aade
Show file tree
Hide file tree
Showing 25 changed files with 938 additions and 1,473 deletions.
6 changes: 3 additions & 3 deletions bazel/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ def _libpsi():
http_archive,
name = "psi",
urls = [
"https://github.com/secretflow/psi/archive/9225bc9626a4ed3e4a8a55b86e400aa5e50e3e93.tar.gz",
"https://github.com/secretflow/psi/archive/refs/tags/v0.2.0.dev240222.tar.gz",
],
strip_prefix = "psi-9225bc9626a4ed3e4a8a55b86e400aa5e50e3e93",
sha256 = "f90e9e9a2a931833ebdf8f08c01c09fe0c1b0f88458f0c18d45b1a548cf2c001",
strip_prefix = "psi-0.2.0.dev240222",
sha256 = "6b3aed24ae5dc4dce7acfc140093612f8753b9643a6a19177483f8462eda061f",
)

def _rules_proto_grpc():
Expand Down
9 changes: 9 additions & 0 deletions examples/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,12 @@ To use a specific layout configuration (i.e. change MPC protocol, change outsour
> bazel run -c opt //examples/python/utils:nodectl -- -c examples/python/conf/2pc.json up
Then please check the comment of each example to run.

## Examples for PSI/PIR

Please check tests at this moment:

- spu/tests/legacy_psi_test.py
- spu/tests/psi_test.py
- spu/tests/ub_psi_test.py
- spu/tests/pir_test.py
4 changes: 3 additions & 1 deletion examples/python/ml/ml_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ def suite():
# should put JAX tests above
suite.addTest(UnitTests('test_tf_experiment'))
suite.addTest(UnitTests('test_torch_lr_experiment'))
suite.addTest(UnitTests('test_torch_resnet_experiment'))
# TODO: torch_xla's stablehlo version is not compatibale with SPU,
# reopen when torch_xla upgrade its stablehlo version
# suite.addTest(UnitTests('test_torch_resnet_experiment'))
return suite


Expand Down
65 changes: 0 additions & 65 deletions examples/python/pir/BUILD.bazel

This file was deleted.

97 changes: 0 additions & 97 deletions examples/python/pir/pir_client.py

This file was deleted.

98 changes: 0 additions & 98 deletions examples/python/pir/pir_mem_server.py

This file was deleted.

94 changes: 0 additions & 94 deletions examples/python/pir/pir_server.py

This file was deleted.

Loading

0 comments on commit ba2aade

Please sign in to comment.